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.
Hello,
I have a measure that adds up a column and then divides each row in that column by the total of the column (calculating percentage). However, when I filter by a different column, the original total of the column changes. I am trying to make it so the total of the column will not change even when filters are applied.
I want it to look like the yellow where if you filter something out, it will still take that number into account when computing the total. Hoping to modify my measure/create a new one that can do this.
Thank you for all the help!!
Solved! Go to Solution.
Percent measure : =
VAR _allcount =
CALCULATE ( SUM ( Data[Count] ), REMOVEFILTERS ( Offers[OfferName] ) )
VAR _count =
SUM ( Data[Count] )
VAR _result =
DIVIDE ( _count, _allcount )
RETURN
_result
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Percent measure : =
VAR _allcount =
CALCULATE ( SUM ( Data[Count] ), REMOVEFILTERS ( Offers[OfferName] ) )
VAR _count =
SUM ( Data[Count] )
VAR _result =
DIVIDE ( _count, _allcount )
RETURN
_result
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@angevin17 You will need an ALL statement in your measure somewhere.
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |