Forum Discussion
Exclude Records Using Yes/No Slicer
- 5 years ago
Hi jbhca12
Try measure as:
Measure = var _slicer= SELECTEDVALUE(Slicer[Include scheduled downtime?]) return IF( _slicer="Yes", IF( MAX('Table'[OneTime])=3 || MAX('Table'[OneTime])=1, 1, 0), IF( MAX('Table'[OneTime])=1, 1, 0 ) )The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
I don't think you understood my explaination. oeeTime = 2 is already filtered out...I need to be able to "Yes" or "No" concerning downtime of oeeTime = 1 or oeeTime = 3. I simply want a "Yes" or "No" so the records are oeeTime = 1 only or (oeeTime = 1 AND oeeTime = 3).
Thanks!
jbhca12 , Those screenshots did not appear when I saw last time. Loading issue.
Let me make one more attempt
Measure =
var _sel = selectedvalue(slicer[slicer]) //Yes and no slicer
return
if(_sel ="Yes", calculate(sum(Table[value]), filter(Table, Table[oeeTime] in {1,3})) , calculate(sum(Table[value]), filter(Table, Table[oeeTime] in {1})))
for add 2
Measure =
var _sel = selectedvalue(slicer[slicer]) //Yes and no slicer
return
if(_sel ="Yes", calculate(sum(Table[value]), filter(Table, Table[oeeTime] in {1,2,3})) , calculate(sum(Table[value]), filter(Table, Table[oeeTime] in {1,2})))
- jbhca125 years agoHelper I
Not sure I understand. Where am I creating this measure? Also, you wrote:
"var _sel = selectedvalue(slicer[slicer])" - How do you reference a slicer?
...and what are you summing as a Table[value]?Sorry, I think you'll need to dumb this down a bit...I'm not understanding what you are suggesting.