Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

COMBINE FILTER

Hello everyone, I need to be able compare VALUE1 for each SCENARIO in graphs for each CLIENT and after selecting the SCENARIO in the graphs have the sum of VALUE2 for both clients. 

 

CLIENTSCENARIOVALUE1VALUE2
AK46
AL28
AM63
BN88
BO96
BP72

 

Thanks!

  • Hi, Anonymous 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

    Table:

     

    You may create a measure as below.

    Sum of value2 = 
    CALCULATE(
        SUM('Table'[VALUE2]),
        FILTER(
            ALL('Table'),
            [SCENARIO] in DISTINCT('Table'[SCENARIO])
        )
    )

     

    If you select M and O, you will get 9 the result of sum of VALUE2 (3+6).

     

    Best Regards

    Allan

     

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

     

3 Replies

  • Anonymous 

    Can you provide an example of the expected results?

    ________________________

    If my answer was helpful, please consider Accept it as the solution to help the other members find it

    Click on the Thumbs-Up icon if you like this reply 🙂

    YouTube  LinkedIn

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      If I select M and O, I get 5 the result of sum of VALUE2 (3+2)

       

  • v-alq-msft's avatar
    v-alq-msft
    Community Support

    Hi, Anonymous 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

    Table:

     

    You may create a measure as below.

    Sum of value2 = 
    CALCULATE(
        SUM('Table'[VALUE2]),
        FILTER(
            ALL('Table'),
            [SCENARIO] in DISTINCT('Table'[SCENARIO])
        )
    )

     

    If you select M and O, you will get 9 the result of sum of VALUE2 (3+6).

     

    Best Regards

    Allan

     

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