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.
Hi, what I am trying to do is to get the maximum date by Material. I'm using datasets, tables with attributes, and tables with measures.
DAX:
EVALUATE
SUMMARIZECOLUMNS (
'Material'[MAT WRIN0],
'Delivery Date'[DLVD Date],
'Purchase Order'[PO Number],
FILTER (
VALUES ( 'Distributor'[DIST Country] ),
( 'Distributor'[DIST Country] = "Romania" )
),
FILTER (
VALUES ( 'Purchase Order'[PO Status Description] ),
( 'Purchase Order'[PO Status Description] = "Purchase order APPROVED" )
),
"Purchase Order To Be Received Quantity", [Purchase Order To Be Received Quantity]
)
ORDER BY 'Delivery Date'[DLVD Date]
Here is the data extract, and the final result should be like WRIN0 and Max DLVD Date (just one line per WRIN0).
Solved! Go to Solution.
Hi @Anonymous
please use
EVALUATE
FILTER (
SUMMARIZECOLUMNS (
'Material'[MAT WRIN0],
'Delivery Date'[DLVD Date],
'Purchase Order'[PO Number],
FILTER (
VALUES ( 'Distributor'[DIST Country] ),
( 'Distributor'[DIST Country] = "Romania" )
),
FILTER (
VALUES ( 'Purchase Order'[PO Status Description] ),
( 'Purchase Order'[PO Status Description] = "Purchase order APPROVED" )
),
"Purchase Order To Be Received Quantity", [Purchase Order To Be Received Quantity]
),
'Delivery Date'[DLVD Date]
= CALCULATE (
MAX ( 'Delivery Date'[DLVD Date] ),
ALLEXCEPT ( 'Material', 'Material'[MAT WRIN0] )
)
)
ORDER BY 'Delivery Date'[DLVD Date]
Hi @Anonymous
please use
EVALUATE
FILTER (
SUMMARIZECOLUMNS (
'Material'[MAT WRIN0],
'Delivery Date'[DLVD Date],
'Purchase Order'[PO Number],
FILTER (
VALUES ( 'Distributor'[DIST Country] ),
( 'Distributor'[DIST Country] = "Romania" )
),
FILTER (
VALUES ( 'Purchase Order'[PO Status Description] ),
( 'Purchase Order'[PO Status Description] = "Purchase order APPROVED" )
),
"Purchase Order To Be Received Quantity", [Purchase Order To Be Received Quantity]
),
'Delivery Date'[DLVD Date]
= CALCULATE (
MAX ( 'Delivery Date'[DLVD Date] ),
ALLEXCEPT ( 'Material', 'Material'[MAT WRIN0] )
)
)
ORDER BY 'Delivery Date'[DLVD Date]
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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
33 | |
18 | |
18 |