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.
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
Solved! Go to Solution.
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
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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |