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
tungsh
New Member

Urgent GRAND TOTAL by Month and Grand Total Percentage by Month

Hello All,

I was trying to get GRAND TOTAL by Month and Grand Total Percentage by Month in to a measure,

Sub total = =CALCULATE([Count of BP number],ALLEXCEPT(data, Data[Month])

 But still I couldn't get what I am looking for.

I need Grand Total in measure for example selected month = january, then grand total measure should show 3532. Measure is giving sum of entire data for that column.

 

MonthAchieve Count of BP Number
JanuaryExceeded45
JanuaryMet3487
FebruaryExceeded15
FebruaryMet4187
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @tungsh 

You could try below measures. 

Sub total = CALCULATE(SUM(Data[Count of BP Number]),ALLEXCEPT(Data, Data[Month]))
Sub total percentage = DIVIDE([Sub total],CALCULATE(SUM(Data[Count of BP Number]),ALL(Data)))

051901.jpg

 

My [Count of BP Number] in above measures is a column in Data table. If yours is a measure, you could replace SUM(Data[Count of BP Number]) with your measure. If this still doesn't work, can you provide some dummy data and expected result more clearly?

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @tungsh 

You could try below measures. 

Sub total = CALCULATE(SUM(Data[Count of BP Number]),ALLEXCEPT(Data, Data[Month]))
Sub total percentage = DIVIDE([Sub total],CALCULATE(SUM(Data[Count of BP Number]),ALL(Data)))

051901.jpg

 

My [Count of BP Number] in above measures is a column in Data table. If yours is a measure, you could replace SUM(Data[Count of BP Number]) with your measure. If this still doesn't work, can you provide some dummy data and expected result more clearly?

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

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.

Top Solution Authors
Top Kudoed Authors