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

Percentage of level

Hello,

It is a simple calculation of the percentage (Audited/Total).

Ha2san_3-1618936037135.png

 

However when the country level hierarchy is added, the percentage gets messed up.

Ha2san_2-1618935992287.png

 

What is needed is just the percentage of each country relative to its respective total. 

How would you resolve it?

Thanks

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Try the following formula:

Total = DISTINCTCOUNT(Table1[Name])
Audited = CALCULATE(DISTINCTCOUNT(Table1[Name]),Table1[Completion]="YES")
% = [Audited]/[Total]*100

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @v-kkf-msft ,

I had exactly the same measures but for some reason it was't coming out correctly.

It works now. Thanks a lot.

Anonymous
Not applicable

Hi @amitchandak 

Thanks for your offer to assist.

 

Total = DISTINCTCOUNT(Table1[Name])
Audited = CALCULATE(Table1(Name]),FILTER(Table1[Completion]="YES"))
% = [Total]/[Audited]*100

Hi @Anonymous ,

Try the following formula:

Total = DISTINCTCOUNT(Table1[Name])
Audited = CALCULATE(DISTINCTCOUNT(Table1[Name]),Table1[Completion]="YES")
% = [Audited]/[Total]*100

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

amitchandak
Super User
Super User

@Anonymous , share the formula for Audited  and Total

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.