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
TaroGulati
Helper II
Helper II

Value Grand total

Hi guys,

 

i am having a small calculation issue for the percentage on grand total values.

 

I have a table where one "category" is blank as you can see on the left table. I have created a measure which should give me percentage on the total value. issue is that once i am removing blank from category by using filter it is still showing the same result. I was expecting the result for value1 = 12/42 =  28,57% in the table on the right but it is still doing 12/52 = 23,08%. Capture.PNG

my measure is this :- 

measure = DIVIDE(SUM(Sheet1[Value]),CALCULATE(SUM(Sheet1[Value]),ALL(Sheet1[Category])))
 
I am not able to find where i am making mistake. 
 
can you help me to find the solution please?
 
Thanks in advance.
 
stay safe.
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@TaroGulati , Try allselected in place of all and check

measure = DIVIDE(SUM(Sheet1[Value]),CALCULATE(SUM(Sheet1[Value]),allselected (Sheet1[Category])))

View solution in original post

Yes, now it is working. thanks.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@TaroGulati , Try allselected in place of all and check

measure = DIVIDE(SUM(Sheet1[Value]),CALCULATE(SUM(Sheet1[Value]),allselected (Sheet1[Category])))

Yes, now it is working. thanks.

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.