Forum Discussion
Multiple slicers for one visual
- Anonymous5 years ago
Hi nrustamli ,
The file is here, you can check if it is what you want.
Because I don’t know your needs, so the value shown in my picture is Variable 1.
Measure = CALCULATE ( SUM ( 'Table'[Variable 1] ), FILTER ( 'Table', [Countries] = SELECTEDVALUE ( Slicer1[Countries] ) ) )Measure 2= CALCULATE ( SUM ( 'Table'[Variable 1] ), FILTER ( 'Table', [Countries] = SELECTEDVALUE ( Slicer2[Countries] ) ) )Measure 3 = IF(ISFILTERED(Slicer2[Countries]),[Measure])Measure 4 = IF(ISFILTERED(Slicer1[Countries]),[Measure 2])Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello, could you please elaborate on this? Because my first thought was about the interactions as well, here how the interactions of Slicer 1 look:
And here are the interactions of Slicer 2:
Anything else that needs to be done here?
nrustamli , you need two lines one from slicer 1 and one from slicer 2. In that case you need independent tables(at least one)
refer my date example - You need to slicer for country in place of date
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601