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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
carlton7372
Helper III
Helper III

How to View DAX Querie results in a Visual

Hello Community,

 

I very new to Power BI. I have created the following DAX query. 

 

EVALUATE
    SELECTCOLUMNS(
        TOPN(
            100,
            'Item History Operation',
            'Item History Operation'[Day],
            ASC
        ),
        'Item History Operation'[Day],
        'Item History Operation'[Operations],
        'Item History Operation'[CU (s)],
        'Item History Operation'[Duration (s)],
        'Item History Operation'[Throttling (s)],
        'Item History Operation'[ItemHistoryUniquKey]
    )
    ORDER BY 'Item History Operation'[Day] ASC
 
The output is as follows:
carlton7372_0-1759478259340.png

 

Can someone let me know if it's possible to create a visual from the DAX page? Or simply from the output.

 

carlton7372_1-1759478336218.png

 

 

 

2 ACCEPTED SOLUTIONS

No. The DAX Query view is supposed to be a native way to inspect the query generated by a visual for optimization or for some other purposes. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

You can use a backslash to create  subfolder or a semicolon to assign the same measure to different folders

danextian_0-1759490395034.png

danextian_1-1759490406450.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

12 REPLIES 12
carlton7372
Helper III
Helper III

Hi, in somewhat related question, is it possible to create a sub-folder or category under Measures? For example I would like to create a sub-category called, MyMeasures, under Measures. Is that possible?

carlton7372_0-1759489997114.png

 

You can use a backslash to create  subfolder or a semicolon to assign the same measure to different folders

danextian_0-1759490395034.png

danextian_1-1759490406450.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @carlton7372,

You can do that by going to Modelling tab and then select the measure which you eant to move, under properties pane, type display folder name. it'll move the measure under that folder (Folder will be created if not already exist), repeat for other measuers and they will also move to this folder 

grazitti_sapna_0-1759490368337.png

 

danextian
Super User
Super User

Hi @carlton7372 

 

You either create a calcualted table from using the whole SELECTCOLUMNS in your query and add them to the a table visual or add the columns outside TOPN but inside SELECTCOLUMNS to a table visual, sort by day in descending order and add  TOPN filter on day using the visual filter. No direct way to convert a DAX query to a visual. Almost everything that happens in the report view translates to one a DAX query but it is not the other way around.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi Danextian,


@danextian wrote:

No direct way to convert a DAX query to a visual. 

This is a shame.

Is there absolutely no way of converting a DAX query into a visual?

No. The DAX Query view is supposed to be a native way to inspect the query generated by a visual for optimization or for some other purposes. 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
carlton7372
Helper III
Helper III

@grazitti_sapna Thanks for getting in touch. I tried your suggestion, but I'm getting the following error:

carlton7372_0-1759481420832.png

 

Hi @carlton7372

 

You are creating a measure but you need to create a table by clicking new table.

 

 

Hi, thanks again for getting back to me. 

When you say 'clicking new table', did you mean

 

carlton7372_0-1759488234314.png

 

 

Hi @carlton7372,

 

Click on ony table in Data pane on right side.

 

grazitti_sapna_1-1759488743782.png

 

 

and select new table from table tools

 

grazitti_sapna_0-1759488706168.png

 

 

grazitti_sapna
Super User
Super User

Hi @carlton7372,

 

Instead of running an EVALUATE in query view, define a calculated table in your model:

 

MyTable =
TOPN (
100,
SELECTCOLUMNS (
'Item History Operation',
"Day", 'Item History Operation'[Day],
"Operations", 'Item History Operation'[Operations],
"CU (s)", 'Item History Operation'[CU (s)],
"Duration (s)", 'Item History Operation'[Duration (s)],
"Throttling (s)", 'Item History Operation'[Throttling (s)],
"ItemHistoryUniquKey", 'Item History Operation'[ItemHistoryUniquKey]
),
[Day], ASC
)

 

Alternatively you can use the required columns in table view and add a filter with top 100 by day as below

 

grazitti_sapna_0-1759478938596.jpeg

 

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

Thanks for getting in touch. I tried your suggestion, but I'm getting the following error:

carlton7372_0-1759481616166.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors