Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
computermike
Helper I
Helper I

How can I use a DAX query

I wrote a dax query that returns a table.  How would I use this in my report?  Do I have to add it to my model?  Can I use it behind a chart without adding to my model?  Can I display on a grid?

 

Thanks,

 

Mike

1 ACCEPTED SOLUTION
Anonymous
Not applicable

On the modeling ribbon there is a "New Table" button, where you put your dax query, and <poof>.  A new table is hanging out, refreshed only when you refresh your dataset (so, it is static).

 

It's not super clear what your "goal" is... what your asking would certainly be an atypical way of creating a report.

 

Typically you just drag over columns from existing tables, and write a few measures to do fancy calculations, then bob's ur uncle.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

There is no way to "display the results of this query in a visual" directly.  You can create a calculated table, then add each of the columns to your visual...

Not familiar with calculated table.  Is that a table in my data model?  So I would add it to my data model?  I am also wondering about relationships...   Would I leave it sitting by itself?  try and connect it to my fact table?   But what if the grain of the fact is different?

Anonymous
Not applicable

On the modeling ribbon there is a "New Table" button, where you put your dax query, and <poof>.  A new table is hanging out, refreshed only when you refresh your dataset (so, it is static).

 

It's not super clear what your "goal" is... what your asking would certainly be an atypical way of creating a report.

 

Typically you just drag over columns from existing tables, and write a few measures to do fancy calculations, then bob's ur uncle.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.