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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Creating a calculated measure for average percent

Hello Power BI DAX Commanders,

 

I hope that all is well. Can you help me troubleshoot my dax code?

 

Calculated measure

Percent = DIVIDE(
    [Total Responses],
    CALCULATE(
        [Total DF],
        ALL('Survey Fact')
    )
)

 

Screenshot 2024-01-26 105852.jpg

 

In the matrix, I want to replace the 100% with an average percent.

 

Transform DataResponsesPercent
Join Data sets2291.67%
Map fields1770.83%
Transform from wide to long1666.67%
Union Data Sets1666.67%
 Average Percent73.96%

 

I can use Excel to calculate the output =Subtotal(1, Ave(C2:C6).

 

Here is the link to the PBIX and data source files. Winter Survey

 

Any nudge is greatly appreciated.

 

Luis Pablo Martinez

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

2 REPLIES 2
lbendlin
Super User
Super User

lbendlin_0-1706324198130.png

 

@lbendlin - this is correct! How did you come up with your solution? Thank you.

 

I am the orignal poster. I just changed jobs and cannot reply from my original profile.

 

Could the moderator please mark @lbendlin reply as the solution?

 

Thank you again.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.