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

Average of percentages - DAX

Hello,

I am a DAX newbie and I cannot seem to get something to work properly, though I suspect I'm making it harder that it should be.  I'm trying to create an average of wave percentages in a matrix instead of adding across and using the total percent.  

 

Here is the data I'm using:

RatingWave 1Wave 2Wave 3Wave 4
Base148169199146
Very likely24.32%17.16%28.64%15.07%

 

I'm trying to create a DAX formula that adds the percentages for each wave and divides by the number of waves. The result for the above would be 21.3%.

Can this be done?

Thanks in advance for any guidance.

T

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

Hi@ tholschuh 

You can change the type of aggregation of filed Very likely to Average

9.png

Result:

10.png

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Lin,

 

Thanks for your reply. I will see if I can use this somehow.  I know the 'average' exists, but I need to average the percentages, not numbers so I think there may be more DAX work needed like creating a measure that potentially converts percentages to numbers and using that instead.

 

Terry

hi,@tholschuh

  you can use AVERAGE / AVERAGEX Function to create a measure like below:

measure = CALCULATE(AVERAGE(Table1[like]))

then selected the filed and change the Format:

12.PNG

Result:

13.PNG

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.