Forum Discussion

saranp780's avatar
saranp780
Icon for Helper III rankHelper III
8 years ago

How to set level filter on Slicer?

I have a set of large data this just example.

 

Asia
ThailandSingaporeMalaysiaVietnam
Bangkok Kuala LumpurHo Chi Min
KhonKean MalakaHanoi
ChingMai   
ChiangRai   
    
    
Europe 
GeramanyNetherlandFrance 
MunicAmsterdamNice 
Frankfurt Paris 
  Bodox 

 

So what I want is Filter levels such as.....

 

Level1(Continent)->Level2(Country)->Level3(City)

 

The result shows as Continent(Asia and Europe) as default and when someone else clicks on the name such as Asia, The result is country(Thailand, Malaysia, Vietnam, and Singapore. After select country then the city will be shown.

 

How to make it happen in Power BI? Do I have to use DAX or Slicer? Could you please tell me?

 

Thank you.

2 Replies

  • Check the visual store. There a number that iwll meet your needs.  My favorite is the Drill Down Donut but unless you pay for the premium version you get an watermark. Another would be the hierachical slicer.

     

    Note will be much easier if you have a data structure like this. Fact Table with information by City and lookup table to map City to Country and Continent which are related by City in the relationship tab.

     

    CityData 1Data2Data3
    FrankfurtValueValueValue 
        
         

     

    Country Lookup Table

    ContinentCountryCity
    EuropeGermanyFrankfurt
    EuropeGermanyStutgart
    ….