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
Vtomsons
Helper I
Helper I

% of grand total in a Card type visual

Iam creating a dashboard for very specific categories and I can filter out the values that I only want to capture so I get the value with no calculation but I'd like to also show what the percent of the total value would be compared to the entire population.

 

For example, I have 3 registered students out of 100 we sent a promo email to. I'd also like to show this value as a percentage of 3% in another visual like a card.

 

I use the count of total unique emails but since I filter all the one's out that I don't want, the card reports the value as 100% when I want it to take in to consideration all the filter totals in to the equation. 

 

Is this a simple oversight or do I have to set my data up differently?

 

Thanks,

 

Val

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

@Vtomsons ,

 

You can use the ALLSELECT/ALL function to ignore the applied filters and calculate the grand total.

Something like:

GT = 
DIVIDE(
SUM(TABLE[COLUMN]),
CALCULATE(SUM(TABLE[COLUMN]), ALLSELECT(TABLE)))

OR

GT = 
DIVIDE(
SUM(TABLE[COLUMN]),
CALCULATE(SUM(TABLE[COLUMN]), ALL(TABLE[COLUMN)))

 

https://docs.microsoft.com/en-us/dax/allselected-function-dax

https://docs.microsoft.com/en-us/dax/allexcept-function-dax

https://docs.microsoft.com/en-us/dax/all-function-dax

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @Vtomsons ,

 

Did @camargos88  solve your issue?

If yes, please kindly mark it as a solution to help others find it more quickly.

 

If it doesn’t meet your requirement, could you please provide a mockup sample based on fake data or describe the fields of each tables?

It will be helpful if you can show us the exact expected result based on the tables.

 

Please upload your files to OneDrive For Business and share the link here. Please don't contain any Confidential Information or Real data in your reply.

 

Best regards,

 

Community Support Team _ zhenbw

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

camargos88
Community Champion
Community Champion

@Vtomsons ,

 

You can use the ALLSELECT/ALL function to ignore the applied filters and calculate the grand total.

Something like:

GT = 
DIVIDE(
SUM(TABLE[COLUMN]),
CALCULATE(SUM(TABLE[COLUMN]), ALLSELECT(TABLE)))

OR

GT = 
DIVIDE(
SUM(TABLE[COLUMN]),
CALCULATE(SUM(TABLE[COLUMN]), ALL(TABLE[COLUMN)))

 

https://docs.microsoft.com/en-us/dax/allselected-function-dax

https://docs.microsoft.com/en-us/dax/allexcept-function-dax

https://docs.microsoft.com/en-us/dax/all-function-dax

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



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.