Forum Discussion
numersoz
Helper III
6 years agoCommon Slicer for Same Value Type Within Same Table
Hi, I have a table that contains below columns as % as well as some other values as time stamp. Load 1, Load 2, Load 3, Load 4 These are loads for 4 different equipment. I have a graph for ...
v-alq-msft
Community Support
6 years agoHi, numersoz
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
Test:
You may create four measures as below.
Isdisplay1 =
var _min = CALCULATE(MIN(Test[Percentage]),ALLSELECTED(Test))
var _max = CALCULATE(MAX(Test[Percentage]),ALLSELECTED(Test))
var _load1 = SELECTEDVALUE('Table'[Load 1])
return
IF(
_load1>=_min&&_load1<=_max,
1,0
)
Isdisplay2 =
var _min = CALCULATE(MIN(Test[Percentage]),ALLSELECTED(Test))
var _max = CALCULATE(MAX(Test[Percentage]),ALLSELECTED(Test))
var _load2 = SELECTEDVALUE('Table'[Load 2])
return
IF(
_load2>=_min&&_load2<=_max,
1,0
)
Isdisplay3 =
var _min = CALCULATE(MIN(Test[Percentage]),ALLSELECTED(Test))
var _max = CALCULATE(MAX(Test[Percentage]),ALLSELECTED(Test))
var _load3 = SELECTEDVALUE('Table'[Load 3])
return
IF(
_load3>=_min&&_load3<=_max,
1,0
)
Isdisplay4 =
var _min = CALCULATE(MIN(Test[Percentage]),ALLSELECTED(Test))
var _max = CALCULATE(MAX(Test[Percentage]),ALLSELECTED(Test))
var _load4 = SELECTEDVALUE('Table'[Load 4])
return
IF(
_load4>=_min&&_load4<=_max,
1,0
)
Then you need to put these measures in the corresponding visual level filters to display the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.