Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Dear all,
I hope you are well. Seeking your help with a DAX formula after hours of googling in and out.
I have the following data situation:
CALCULATE( COUNT([OrderID]); FILTER(Orders; [OrderID] = EARLIER('Orders'[OrderID])))
Order ID | Product ID | No of Products per order | Status | Expected result: No of 'Delivered' per Order |
1 | A | 3 | Delivered | 3 |
1 | B | 3 | Delivered | 3 |
1 | C | 3 | Delivered | 3 |
2 | A | 3 | Delivered | 2 |
2 | B | 3 | Delivered | 2 |
2 | C | 3 | In progress | 2 |
I hope this makes sense.
Appreciate your wisdom
Solved! Go to Solution.
@Ged you can extend your existing dax formula to include only delivered
CALCULATE( COUNT([OrderID]); FILTER(Orders; [OrderID] = EARLIER('Orders'[OrderID]) && [Status] = "Delivered" ))
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Ged you can extend your existing dax formula to include only delivered
CALCULATE( COUNT([OrderID]); FILTER(Orders; [OrderID] = EARLIER('Orders'[OrderID]) && [Status] = "Delivered" ))
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Appreciate this, this is exactly something I had tried before posting here:
G_No of Hit per Order = CALCULATE( COUNT(Table1[Order No]), FILTER(Table1,Table1[Order No] = EARLIER(Table1[Order No]) && Table1[G_OTIF HIT/MISS]="HIT") )
Column 'G_OTIF HIT/MISS' is my Delivery status in the example.
Problem: the calculated column yields no results! Literally, all the cells are blanks.
Oh...It was 11pm when I was doing it last night, did not check the column values and understand that there will be blanks depending on the 'Delivery' status. (facepalm).
Appreciate your answer, marking it as the solution!
Thanks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |