Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |