Forum Discussion

tiagopardo's avatar
tiagopardo
Frequent Visitor
2 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi tiagopardo ,

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

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


    No relationship exists between the three tables:

    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
    )

    Suppose I want to compare firm a and firm b:


    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.


    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.

3 Replies