Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
| ID | Order# | Status |
| A-1 | PO-111 | Cancelled |
| A-1 | PO-111 | Active |
| A-2 | PO-333 | Cancelled |
| A-3 | PO-222 | Cancelled |
| A-3 | PO-444 | Cancelled |
Solved! Go to Solution.
Hi @PBI_newuser ,
Create a calculated column as shown below:
Status Flag = IF('Table'[Status]="Active",1,0)Status Filter = CALCULATE(SUM('Table'[Status Flag]),ALLEXCEPT('Table','Table'[ID]))this will give you the required result:
In case you need the PBIX here is the link:
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
Hi @PBI_newuser ,
Create a calculated column as shown below:
Status Flag = IF('Table'[Status]="Active",1,0)Status Filter = CALCULATE(SUM('Table'[Status Flag]),ALLEXCEPT('Table','Table'[ID]))this will give you the required result:
In case you need the PBIX here is the link:
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
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 ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |