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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
e2liu77
Helper I
Helper I

2 Data in same visual with different filters applied

Hi all,
 
I have 2 measures, the first applies filter 1 but not filter 2. The other applies filter 2 not filter 1. 2 measurs have to be shown in the same visualization.
Column1 for filter 1, and column 2 is for filter 2.
 
Code looks like:
Result1 =
CALCULATE(
    [a measure 1],
    Table[column1] IN { multiple choices}
)
Result2 =
CALCULATE(
    [a measure 2],
    Table[column2] IN { multiple choices}
)
I need to place result 1 and result 2 in same visualization.
 
Column1 and Column2 has different column titles but same value set, let's say {C, H, M, L}.
 
I would like to create a new table CandidateValue with value {C, H, M, L}, and set it as visual slicer. I need to choose 2 of {C, H, M, L}, i.e. {C, H}
e2liu77_0-1617109231823.png

 

I try to create below code:
ChosenValue =
CONCATENATEX (
VALUES(CandidateValue [Value] ),[Value],",")
 
and replace the "multiple choices" in result 1 and result 2 with the "ChosenValue".
 
But it doesn't work. What's wrong?
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @e2liu77 

Please correct me if I wrongly understood your question.

 

Can you try the below measure?

 

Result1 =
CALCULATE(
    [a measure 1],
    Table[column1] IN allselected (CandidateValue [Value])
)
 
 
Result2 =
CALCULATE(
    [a measure 2],
    Table[column2] IN allselected(CandidateValue [Value])
)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
e2liu77
Helper I
Helper I

Hi Jim, Yes, it works! Thanks for helping me!

You are welcome.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Jihwan_Kim
Super User
Super User

Hi, @e2liu77 

Please correct me if I wrongly understood your question.

 

Can you try the below measure?

 

Result1 =
CALCULATE(
    [a measure 1],
    Table[column1] IN allselected (CandidateValue [Value])
)
 
 
Result2 =
CALCULATE(
    [a measure 2],
    Table[column2] IN allselected(CandidateValue [Value])
)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi Jim,

 

I have a further question on this topic.

 

Now  I have result 1 based on measure 1/column1and result 2 based on measure 2/column2. I need to calculate result 3 = Result 1*result 2.

Result 3 needs to be presented against candidatevalue group. Is it possible?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.