Forum Discussion

deb_power123's avatar
deb_power123
Icon for Helper V rankHelper V
5 years ago
Solved

How can use the same filter to filter same columns independent of each others selections in PowerBI

Hi All, I have a  table visualization in powerBI with two columns QuaterYear and SalesAmountB. I want to add another column  SalesAmountB.   I have two filters (QuaterYear - case 1 and Quater Year...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi deb_power123 ,

     

    According to my understanding, you want to use the same field to filter the table twice but do not affect each other, right?

     

    You could create two calculated tables:

    ScenarioA =
    VALUES ( 'Table'[QuaterYear] )
    ScenarioB =
    VALUES ( 'Table'[QuaterYear] )

    And use the following formula to create measures:

    MeasureA =
    IF (
        MAX ( 'Table'[QuaterYear] ) IN ALLSELECTED ( ScenarioA[QuaterYear] ),
        1,
        0
    )
    MeasureB =
    IF (
        MAX ( 'Table'[QuaterYear] ) IN ALLSELECTED ( ScenarioB[QuaterYear] ),
        1,
        0
    )

    Then apply them to filter pane (set as "is 1") as shown below:

    Here is the pbix file.

     

    Best Regards,
    Eyelyn Qin
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.