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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-junyant-msft
Community Support
Community Support

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.

v-junyant-msft
Community Support
Community Support

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



Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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