Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

How can I create a custom FILTER?

Hello

 

I want to create a slicer filter that will show only rows matching specific AND-OR criteria.

 

How can I do that please?

 

Where do I specify the name of the Filter (the name of the Group of rows that I want to display) and where do I put the conditions?

 

I tried with a MEASURE but it has a problem with aggregate functions.

 

Thanks!

3 Replies

  • Anonymous , You have a visual level filter and page-level where you can put or and and.

     

    In a formula you can do like

    Calculate([Measure], filter(Table,Table[A] ="A" && able[B] ="B" ))

     

    Calculate([Measure], filter(Table,Table[A] ="A" ||  able[B] ="B" ))

     

    You can have any combination of and, or.

     

    But as parry2k  mentioned, please follow those steps for the post to get a quick resolution

  • dax's avatar
    dax
    Community Support

    Hi Anonymous , 

    I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.

    Please do mask sensitive data before uploading.

    Thanks for your understanding and support.
    Best Regards,
    Zoe Zhi

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