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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
cristianml
Post Prodigy
Post Prodigy

Average Dax

Hi,

 

The following measure is not showing the correct Average in the Pivot Table. It Should be 86 instead of 93:

 

Rate Card Value=IF([Actual LCR]=BLANK(), BLANK(),AVERAGEX(Rate_Card_Table, Rate_Card_Table[Rate Card Value]))

 

AVERAGE.jpg

Follow the measure: 

Actual LCR =CALCULATE(AVERAGE(RT_Actual[Quantity]),RT_Actual[Category]="Cost Rate")

 

The measure Rate Card Value shows 93 because is the average of the table "Rate_Card_Table" by "Level". But in the pivot table I have different quantity of "Level" because it depends of another table that is "RT_Actual".

 

How can I modify the mesure Rate Card Value so I see ONLY the calculation of the visible or avaible information in the pivot table that in this case is 86 ?

 

Thanks!

 

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @cristianml 

 

I think this post already exists. We tried already to help, but where not able.

A measure in a pivot table will be filtered on row level (in your row "Irland" and "Senior management"). But if we are coming to a grand-total it's simple no filter applied. This means you are not getting the average of the averages calculated in the upper row levels, but the overall average of your data, witch its all different.

In this scenario you can use 2 different measures on row level and grandtotal. To do the average of all averages you may only be able to in a static way using SUMMARIZE and ADDCOLUMNS. But maybe somebody else is able to help

grafik.png


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @cristianml 

 

I think this post already exists. We tried already to help, but where not able.

A measure in a pivot table will be filtered on row level (in your row "Irland" and "Senior management"). But if we are coming to a grand-total it's simple no filter applied. This means you are not getting the average of the averages calculated in the upper row levels, but the overall average of your data, witch its all different.

In this scenario you can use 2 different measures on row level and grandtotal. To do the average of all averages you may only be able to in a static way using SUMMARIZE and ADDCOLUMNS. But maybe somebody else is able to help

grafik.png


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

 

artemus
Microsoft Employee
Microsoft Employee

Just replace your AVERAGEX(...) with a CALCULATE(AVERAGEX(...), ALL(TABLE_WITH_LEVEL_COLUMN))

 

Actual results depend on exactly how your model is set up.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.