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
antel1
Frequent Visitor

DAX Expression to Generate Table Seen in Show Data of a Column Chart

Hi,
I have a basic column chart that displays the value of a measure (that calculates the average time of a process) split into categories (the different processes).

 

Capture.PNG


There is an option in Power BI that allows you to show the data that the table is displaying.

 

Capture.PNG
Is there is a way to generate this table through a dax expression? I've tried using the following summarize command

SUMMARIZE(OPOrder, OPOrder[OPName], "AvgOp", [AvgOpFiltered])
 
However the numbers generated are incorrect.

Capture.PNG

I need to generate this table as a step in a further calculation. What am I doing wrong in my expression? Or is there an alternative expression I have yet to discover?

Thanks
1 ACCEPTED SOLUTION

Hi @antel1

 

Calculated tables are similar to calculated columns. They are based on underlying source data and are re computed only when the data is refreshed. So they wont respond to WHAT if parameteres.

 

As an alternative,  you can drag the OPName field and this MEASURE to a Table Visual


Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
antel1
Frequent Visitor

Find out half of my issue however I still have a problem.


The measure [AvgOpFiltered] is based on the value of a 'What If' parameter. In my calculation, it assumes this parameter is equal to the default 0. How can I make the table update based on the what if parameter?

Hi @antel1

 

Calculated tables are similar to calculated columns. They are based on underlying source data and are re computed only when the data is refreshed. So they wont respond to WHAT if parameteres.

 

As an alternative,  you can drag the OPName field and this MEASURE to a Table Visual


Regards
Zubair

Please try my custom visuals

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.