Forum Discussion
kumsha1
Post Patron
4 years agoIncorrect column totals average
Hi, In the table visual below, the row wise average seems ok but the column totals average is incorrect. Can someone let me know what might have gone wrong here and help to rewrite the DAX, as of...
- 4 years ago
Hi kumsha1
Use this measure
AvgX = AVERAGEX('DataTable', DIVIDE(SUM('DataTable'[DailyValue]),SUM('DataTable'[DailyPlanValue]))) * 100Regards
Phil
PhilipTreacy
Super User
4 years agoHi kumsha1
So the last column is showing averages? How is this calculated? It seesm to be showing (for the most part) the ratio of Daily Value / DAILY_PLAN_VALUE * 100
Please supply your data, it's hard to work things out with just a summary of the data and not knowing how the calculations are being made.
But, if the Average column is coming from the database, I can't change those values. The column will need to be recomputed in DAX.
I suspecty the issue is something to do with the average being calcalated using AVERAGE rather than using AVERAGEX over the table.
Regards
Phil