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
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
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.