Forum Discussion

vannipart's avatar
vannipart
Frequent Visitor
9 years ago
Solved

Conditional filtering based on specific row value, with several dashboards

Hello

I have a list of countries and then there is a special "all" also included, which is made for one specific visual, to show the overall value. 

Other visuals in the dashboard don't have "all" included into their country tables. If I select 'All' then other dashboards will be empty and the only one that uses "All" shows data. IF no country is selected then other visuals will show what they should but the one that needs all shows wrong data. I don't want to delete the interaction between the visuals, I need some type of a conditional filtering, but haven’t figured it out. 

 

All tables are connected to country table, which is an extra table and includes "All".

Would really appreciate any type of help.

 

What i need is that when nothing is selected, then special visual which requiers "all" is selected and when all is selected other visuals will act like nothing is selected.

 



  • Hello Xiaoxin, 

     

     

    Thank you for you effort!
    I found a way to work around it, it is not perfect but looks like that. 

     

    Measure = if(iscrossfiltered([averageAge]),FIRSTNONBLANK(age[averageAge],

    [averageAge]),CALCULATE(FIRSTNONBLANK(age[averageAge],[averageAge]), FILTER(age,[country] = "All")))

     

     

    I hidde "all" from slicer view, so when nothing is selected then the averageage is 39 and the unit is what it should be and if a country is selected then numbers will be correct.

    Thank you again for your effort!


    Kaarel 

8 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    vannipart  be really helpful here if you could provide some screen shots.  visuals give better understanding

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi vannipart,

       

      Can you please share a sample pbix file to test? Based on your screenshot, it is hard to reproduce your issue.

       

      Regards,

      Xiaoxin Sheng