Forum Discussion

SkorpionAAM's avatar
SkorpionAAM
Helper V
5 years ago
Solved

Filter by Elements

I have Project GoogleSheet Where I need just get the data ... 

 

I have 4 Elements and i want filter only 3 (so people can chnage the value reagrding there Use) 

 

and when thse 3 fileter is uncheck thn box give me 4  elements value which i dont wana in filter option

 

 

Thanks if u need more detils please ask me 

  • Hi SkorpionAAM ,

     

    Based on your description, first you need to create a disconnected table as slicer, then create a measure and apply it to the visual level filter.

    Table 2 = CALCULATETABLE(DISTINCT('Table'[B]),FILTER('Table','Table'[B]<>"Total"))
    Measure = 
    IF(ISFILTERED('Table 2'[B]),IF(MAX('Table'[B]) in VALUES('Table 2'[B]),1,0),1)

     

    Sample .pbix

     

     

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

6 Replies

  • SkorpionAAM why not add a page level or visual level filter, select 3 elements, hide and lock the filter so that client cannot change it.

     

    Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • SkorpionAAM can you provide sample data and expected output. 

     

    Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • SkorpionAAM's avatar
      SkorpionAAM
      Helper V

       

      As you can see i have four elemets , Total , Spend, Pending, Delievery

      in my dashboard and i want 3 filer only Spend, pending and delievery 

      and when thse three fiker is unchecked then dasboard show me Total Value and when cilnets click on thse 3 elemets the show me thereir values 

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi SkorpionAAM ,

     

    Based on your description, first you need to create a disconnected table as slicer, then create a measure and apply it to the visual level filter.

    Table 2 = CALCULATETABLE(DISTINCT('Table'[B]),FILTER('Table','Table'[B]<>"Total"))
    Measure = 
    IF(ISFILTERED('Table 2'[B]),IF(MAX('Table'[B]) in VALUES('Table 2'[B]),1,0),1)

     

    Sample .pbix

     

     

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