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 the following measure and wanted to know what I need to do to replicate the measure and adjust it to show an 'all' figure unaffected by on screen slicer visuals. (this way I can use it to show slicer selections vs an 'all' figure.)
The measure is:
Result =
VAR denominator =
CALCULATE (
SUM (Table1[sub] ),
Table1[pop] = 1
)
VAR numerator =
CALCULATE (
SUM(Table1[num] ),
Table1[empnum]<> 0
&& Table1[pop] = 1
)
RETURN
numerator/denominator
Any advice welcome.
Thanks
Solved! Go to Solution.
You may create a second metric:
Result (All)=
CALCULATE(
[Result],
REMOVEFILTERS(X)
)
Where X is a list of on-screen slicers you have in place, for example:
REMOVEFILTERS(Customers[Country],Items[Category])
You can leave it as REMOVEFILTERS(), but it may be an overkill depending on the context, so you better specify the sliced fields.
You may create a second metric:
Result (All)=
CALCULATE(
[Result],
REMOVEFILTERS(X)
)
Where X is a list of on-screen slicers you have in place, for example:
REMOVEFILTERS(Customers[Country],Items[Category])
You can leave it as REMOVEFILTERS(), but it may be an overkill depending on the context, so you better specify the sliced fields.
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |