Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all
Struggling to write a DAX column for this.
I have two tables:
Order table
Order ID | ... |
101 | ... |
102 | ... |
Order status history
Order ID | Date | Status |
101 | 1/1/23 | Order placed |
101 | 1/1/23 | On hold |
101 | 1/1/23 | Paid |
101 | 1/1/23 | Dispatched |
102 | 1/1/23 | Order placed |
102 | 1/1/23 | Paid |
102 | 1/1/23 | Dispatched |
I am looking to create a column in the order table to highlight if the order has ever been placed on hold irrespective of current status.
Any help on this would be very much appreciated!!
Solved! Go to Solution.
If there's a relationship between Order and the history, then you can try something like:
OnHold = COUNTROWS(FILTER(RELATEDTABLE('Order Status History'), 'Order Status History'[Status] = "On Hold")))
this should be 0 if it's never been placed on hold, and a number >0 if it has.
If there's a relationship between Order and the history, then you can try something like:
OnHold = COUNTROWS(FILTER(RELATEDTABLE('Order Status History'), 'Order Status History'[Status] = "On Hold")))
this should be 0 if it's never been placed on hold, and a number >0 if it has.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |