Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 8 | |
| 8 |