Power BI: calculate the average of measures
When I create a visual table and I put my measures with its corresponding value, enabling the “totals” option will not display the correct result. For instance, I have this table:
I will create a measure to calculate the percentage for each ticket and I will create the visual table:
The total line shows 36.54% and this result is not correct because it corresponds to the average of each row or to the sum of all numbers divided by the sum of all total and not the percentage average of the measure:
To be sure about it, I will extract the table in excel and do the calculation:
The result is 37.18% so how can I get this same result in Power BI ? I will create another measure with this formula:
AVERAGEX(VALUES('table'[argument]),[measure])
Alternatively, I can use this formula in which I can put multiple conditions if needed:
AVERAGEX(SUMMARIZE('table','table'[argument],"XXX",[measure]),[measure])

The result:
And to not confuse my audience, I will disable the “totals” option:
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...






