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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors