Forum Discussion

aliasch's avatar
aliasch
Regular Visitor
1 year ago
Solved

Report Filter Switches Which Measure is Displayed

Hello! I have a use case where I have two measures that need to be displayed in a visual. However, each measure only applies to certain dimension values, so I need the visual to switch measures dep...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi aliasch ,

     

    Thanks Sahir_Maharaj  for the quick reply. I have some other thoughts to add:

    (1) We need two tables. We use the table as a slicer table and table 2 as a fact table with data such as year. Note that there is no model relationship between the two tables.

    (2) We can create a measure.

    Measure = IF(SELECTEDVALUE('Table'[Field])="E",[Measure2],[Measure1])

    (3) Then the result is as follows.

    Select E only:

    Select other only:

    All or None or Multiple Choice:

     

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    Best Regards,

    Neeko Tang

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