Forum Discussion

czaldumbide's avatar
czaldumbide
Helper II
5 years ago
Solved

Classifying transaction based on date slicer

Hi everyone,    I need your help fguring out how to classify a record based on a date slicer.  I'm attaching a PBIX file. Sample PBIX    I have a transactions table where I have the columns of D...
  • v-alq-msft's avatar
    5 years ago

    Hi, czaldumbide 

     

    Based on the descirption, I assume that you want to display the record in ‘Decrease’ where 'ID' is not included in 'Cancellations'.  I created data to reproduce your scenario. The pbix file is attached in the end.

    Cancellations:

     

    Decrease:

     

    You may create a measure as below.

    Visual Control = 
    IF(
        SELECTEDVALUE(Decrease[ID]) in DISTINCT(Cancellations[ID]),
        0,1
    )

     

    Finally you may put the measure in the visual level filter to get 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.