Skip to main content
Microsoft Idea

Power BI

Needs Votes

DAX Query Language Visual

Vote (1747) Share
Matt Allington's profile image

Matt Allington on 04 Nov 2017 04:26:24

I see big value in creating a visual that can display the results of a DAX query. One way this could be deployed is a follows.
* Add the new visual to the report canvas
* Write a DAX query that returns a table (of course) and add this to the visual
* The visual would respect any cross filtering coming from the report just like any other visual.

This would give report writers very granular control to display records without having to use a table visual and a measure that triggers the display of the correct records.

Administrator on 30 Jul 2020 16:56:46

At the moment we don't have any plans to implement this. It sounds like it's mostly useful for learning/training? If there are other 'production' scenarios that you think it'd be useful, where a regular table/matrix wouldn't work, please let us know in the comments!

Comments (28)
Matt Allington's profile image Profile Picture

Narayana Power BI User on 06 Jul 2020 00:07:39

RE: DAX Query Language Visual

One of the most important use cases of a dedicated DAX table visual is performance, especially when filter a table by a measure. I've done tests where the SUMMARIZECOLUMNS query that Power BI generates for a table takes 2-3x longer than an equivalently optimized version that I write using my own DAX. Same results, slower performance.

Matt Allington's profile image Profile Picture

Anthony Yanan on 05 Jul 2020 23:52:41

RE: DAX Query Language Visual

Even in a more general sense a concept in tabular similar to Views in sql would be great. A calculated table that includes current evaluation context/does not actually evaluate until it is called. If this could be another "table type" that a user/report developer could click and drag columns from this could be even more useful.

Matt Allington's profile image Profile Picture

Luiz Florencio on 05 Jul 2020 23:47:34

RE: DAX Query Language Visual

For sure would be good (to production environment) to create complex dax measures wich returns data table. (like Dax Studio does :) )

Matt Allington's profile image Profile Picture

Venkatesh Ramakrishnan on 05 Jul 2020 23:46:01

RE: DAX Query Language Visual

Very Very useful in debugging complex dax measures.

Matt Allington's profile image Profile Picture

Wildmight on 05 Jul 2020 23:45:08

RE: DAX Query Language Visual

This would definitely help in building some complex queries (RANKX comes to mind) with multiple filter conditions - the truth is that wrapped DAX expressions can become very frustrating to dissect very quickly.

Matt Allington's profile image Profile Picture

edh on 05 Jul 2020 23:41:57

RE: DAX Query Language Visual

This isn’t learning training. This is development. It is very diff in a complex measure that isn’t working to figure out what is going on. This would allow us to see to tables a function returns without having to fire up DAX Studio on the side.

Matt Allington's profile image Profile Picture

Power BI User on 05 Jul 2020 23:40:51

RE: DAX Query Language Visual

'@Will Thompson: This isn't a training/learning feature at all. This is an advanced feature for people who know DAX well and want to be able to make reports more sophisticated than what is possible by dragging/dropping fields and measures.

Matt Allington's profile image Profile Picture

Power BI User on 05 Jul 2020 23:32:11

RE: DAX Query Language Visual

This would absolutely transform how useful Power BI is. At the moment, visuals use a very abstracted view of the data model, which is then translated into DAX by the Power BI engine. This approach is good for allowing drag/drop fields and so on, but causes excessive friction when attempting to make a query that doesn't quite fit the abstracted model. For example, when including special logic for filtering rows based on BLANK () values.

Matt Allington's profile image Profile Picture

dpbi on 05 Jul 2020 23:25:10

RE: DAX Query Language Visual

One of the best ideas. That will be the best teacher of DAX and Power Bi.

Matt Allington's profile image Profile Picture

Power BI Ideas Admin on 05 Jul 2020 23:12:23

RE: DAX Query Language Visual

Great Idea It would help for people like me how are weak in DAX