Querying your data model using table functions

The third use for table functions is to query data in your data model. You can do this from within Excel Power Pivot, or through tools such as SSMS or DAX Studio. In this section, we'll look at examples of using all three tools.

A DAX query consists of the EVALUATE statement, followed by a table expression. This table expression can simply be a table name, or it can be a more complex example, such as the one we used in the previous section. The result of executing the EVALUATE statement is returned as a table.

Let's start by looking at how to query data in a data model using Excel. Proceed as follows:

  1. Open the Excel workbook that we created in Chapter 4, Working with DAX in Power BI, Excel, ...

Get Hands-On Business Intelligence with DAX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.