Forum Discussion

PBI_newuser's avatar
PBI_newuser
Post Prodigy
5 years ago
Solved

Filter with multiple criteria

Hi, If i want to create a new field in order for me to filter out only those ID with Cancelled orders. How to do that? Below is the example.   E.g. A-1 has one active order and one cancelled ord...
  • jaideepnema's avatar
    5 years ago

    Hi PBI_newuser ,

    Create a calculated column as shown below:

    Status Flag = IF('Table'[Status]="Active",1,0)
     
    And create a measure as shown below:
    Status Filter = CALCULATE(SUM('Table'[Status Flag]),ALLEXCEPT('Table','Table'[ID]))
     
    Then apply the status filter measure as a visual level filter:

     this will give you the required result:

     

    In case you need the PBIX here is the link:

    https://we.tl/t-EEPKZfRCrn

     

    Please accept this as a solution if your question has been answered !!

    Appreciate a Kudos ğŸ˜€