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.
Hello,
I am trying to create a key measure called Next PO Qty. I want the measure to return the Qty Ordered for the item on the PO with the minimum Expected Delivery Date AND has a status of "O" (i.e. Open). In the sample provided below I would expect the result for item 10007 to be 54.
PO Number | Item Number | Qty Ordered | Expected Delivery Date | Status |
00005292 | 10007 | 54 | 7/24/2019 | O |
00006212 | 10007 | 270 | 9/11/2019 | O |
00006162 | 10007 | 270 | 9/10/2019 | O |
00006051 | 10007 | 270 | 9/3/2019 | C |
00005934 | 10007 | 162 | 8/28/2019 | C |
00005809 | 10007 | 270 | 8/21/2019 | C |
00005660 | 10007 | 216 | 8/13/2019 | C |
Solved! Go to Solution.
Hi @Anonymous
1. Place Item Number in a table visual
2. Place this mesure in the visual
Next PO Qty = VAR EarliestDateO_ = CALCULATE ( MIN ( Table1[Delivery Date] ), Table1[Status] = "O" ) RETURN CALCULATE ( DISTINCT ( Table1[Qty Ordered] ), Table1[Delivery Date] = EarliestDateO_, Table1[Status] = "O" )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Hi @Anonymous
1. Place Item Number in a table visual
2. Place this mesure in the visual
Next PO Qty = VAR EarliestDateO_ = CALCULATE ( MIN ( Table1[Delivery Date] ), Table1[Status] = "O" ) RETURN CALCULATE ( DISTINCT ( Table1[Qty Ordered] ), Table1[Delivery Date] = EarliestDateO_, Table1[Status] = "O" )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |