Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PBI_newuser
Post Prodigy
Post Prodigy

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 order. I do not want it to show up in the table.

A-2 has only one cancelled order, I want it to show up in the table.

A-3 has all cancelled orders, I want it to show up in the table.

IDOrder#Status
A-1PO-111Cancelled
A-1PO-111Active
A-2PO-333Cancelled
A-3PO-222Cancelled
A-3PO-444Cancelled
1 ACCEPTED SOLUTION
jaideepnema
Solution Sage
Solution Sage

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:
jaideepnema_2-1614844252079.png

 this will give you the required result:

jaideepnema_3-1614844281635.png

 

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 😀

 

View solution in original post

4 REPLIES 4
jaideepnema
Solution Sage
Solution Sage

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:
jaideepnema_2-1614844252079.png

 this will give you the required result:

jaideepnema_3-1614844281635.png

 

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 😀

 

Hi @jaideepnema , it works! Thank you!

jaideepnema
Solution Sage
Solution Sage

Hi @PBI_newuser ,

Not very clear but do you want to show this in a table or any other visual or want to create a new column ?

Hi @jaideepnema ,  I would like to show in Table visual with only all cancelled IDs.

PBI_newuser_0-1614843545565.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.