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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
tiagopardo
Frequent Visitor

Comparison page layout

Hi,

 

I'm builting a platform in wich one of the pages will have one scatterplot.

 

The platform has one filter visual for company selection, and the filter syncs along the report pages.

 

With a company selected by this filter, the scatterplot shows some values about that company. As I want to compare this company's values with another (one or many other) company, i want to have another company filter that, as I select other companies, these companies values show up at the scatterplot along with the fist company selected.

 

I have a few problems with this:

The second filter for company cannot be synched with the original company filter, because the original may only get one company at a time and, as a company is already selected, i cannot chance that value to other.

 

The decision of using other filter visual is because its like many comparison pages work like and i'm trying to reproduce it on power BI.

 

Any ideas of how to solve this?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tiagopardo ,

I'm not sure if I'm understanding you correctly.
Here is my sample dataset:

vjunyantmsft_0-1704347981208.png

I create table(2) and table(3) to create two slicers:

vjunyantmsft_1-1704348017456.png
vjunyantmsft_2-1704348026602.png

No relationship exists between the three tables:

vjunyantmsft_3-1704348061681.png

Use this DAX to create a measure:

Measure = 
IF(
    SELECTEDVALUE('Table'[Company]) = SELECTEDVALUE('Table (2)'[Company]) || SELECTEDVALUE('Table'[Company]) = SELECTEDVALUE('Table (3)'[Company]),
    1,
    0
)

vjunyantmsft_4-1704348186895.png

Suppose I want to compare firm a and firm b:

vjunyantmsft_5-1704348221310.png


I'm not quite sure why you're talking about the phrase "because the original may only get one company at a time". Because both Filter and Slicer support multi-selection.

vjunyantmsft_6-1704348681701.pngvjunyantmsft_7-1704348695059.png


Best Regards,
Dino Tao
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
tiagopardo
Frequent Visitor

Thank you for your support. That's what I needed.

Anonymous
Not applicable

Hi @tiagopardo ,

I'm not sure if I'm understanding you correctly.
Here is my sample dataset:

vjunyantmsft_0-1704347981208.png

I create table(2) and table(3) to create two slicers:

vjunyantmsft_1-1704348017456.png
vjunyantmsft_2-1704348026602.png

No relationship exists between the three tables:

vjunyantmsft_3-1704348061681.png

Use this DAX to create a measure:

Measure = 
IF(
    SELECTEDVALUE('Table'[Company]) = SELECTEDVALUE('Table (2)'[Company]) || SELECTEDVALUE('Table'[Company]) = SELECTEDVALUE('Table (3)'[Company]),
    1,
    0
)

vjunyantmsft_4-1704348186895.png

Suppose I want to compare firm a and firm b:

vjunyantmsft_5-1704348221310.png


I'm not quite sure why you're talking about the phrase "because the original may only get one company at a time". Because both Filter and Slicer support multi-selection.

vjunyantmsft_6-1704348681701.pngvjunyantmsft_7-1704348695059.png


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

PijushRoy
Super User
Super User

Hi @tiagopardo 

Please share more details with appropriate screenshot

Please show the expected outcome based on the sample data you provided. Find how to provide sample data
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...


How to get answered quickly
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523






Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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