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 there,
Currently have the below formula.
CALCULATE (
COUNT ( Table[Column] ),
filter('table',[SpicyLevel (%)] >1 &&[No. of Orders] >= 2 &&
TODAY () <= [Expiry Date Less 90 Days])
)
This works however I need to add another condition.
Orders that are cancelled will have "Cancelled" next to the order number. How to I add another condition to exclude text containing "Cancelled" within the Order[OrderNumber]?
Thanks,
Luke
Hi,
If I understood you problem you have data like this:
You can add yet another condition with "&&"
As for the condition use functions like CONTAINSSTRING
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Might not be the best way, but in PQE you can add a conditional column with a "Contains" clause. If Order Number contains "Cancelled" --> "Cancelled", else --> "Active".
Then calculate your measure where your new column = "Active"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |