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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.