Forum Discussion

jbhca12's avatar
jbhca12
Helper I
5 years ago
Solved

Exclude Records Using Yes/No Slicer

Howdy, I have a single table with several columns, one of which is called oeeTime. My report is a machine downtime report, which means I only want to see records/rows of when the machine is not...
  • v-xulin-mstf's avatar
    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!