Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

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!

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

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

Table:

e1.png

 

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).

e2.png

 

Best Regards

Allan

 

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

 

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

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

Table:

e1.png

 

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).

e2.png

 

Best Regards

Allan

 

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

 

Fowmy
Super User
Super User

@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

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

LMPT_0-1600352496111.png

 

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.