Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All I am trying a dax calculation to below scenario. Seems to work fine for nonblank rows but its excluding the blank rows.
CALCULATE (
MAX ( 'Table'[Product Delivery Status] ),
FILTER ( 'Table', 'Fact'[Product Delivery Date] = MAX ( 'Fact'[Product Delivery Date] ) )
)
Dataset:
Product | Product Delivery Status | Product Delivery Date | |
Apples | Delivered | 10/05/2023 23:08 | |
Apples | Delivered | 10/05/2023 21:12 | |
Strawberry |
|
| |
Pear |
|
| |
Orange | Failed | 10/05/2023 21:12 | |
Orange | Delivered | 10/05/2023 21:12 |
Current Result:
Product | Product Delivery Status | Product Delivery Date | Dax Calculation Required |
Apples | Delivered | 10/05/2023 23:08 | Delivered |
Orange | Failed | 10/05/2023 21:12 | Failed |
Desired Result:
Product | Product Delivery Status | Product Delivery Date | Dax Calculation Required |
Apples | Delivered | 10/05/2023 23:08 | Delivered |
Strawberry | |||
Pear | |||
Orange | Failed | 10/05/2023 21:12 | Failed |
you may also try with a calculated table like:
Table =
ADDCOLUMNS(
VALUES(data[Product]),
"Status",
CALCULATE(MAX(data[Product Delivery Status])),
"Date",
CALCULATE(MAX(data[Product Delivery Date]))
)
it worked like: