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.
I am looking for help with my DAX formula to show if Install Date > Ship Date then flag it as a 1 otherwise 0. Currently, I am using the formula below but I don't want it to calculate for products with no ship dates.
Past Due Flag = IF('IV_Product'[Install Date] > 'IV_Product'[Ship Date], 1, 0)
Solved! Go to Solution.
Try this @rachaelwalker
Past Due Flag =
IF(
ISBLANK( 'IV_Product'[Ship Date] ),
BLANK,
IF(
'IV_Product'[Install Date] > 'IV_Product'[Ship Date],
1,
0
)
)
If ShipDate is blank, it returns blank, otherwise it does your normal 1/0 result.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingJust a small thing you missed is that you didn't add parenthesis after BLANK. It Should be BLANK().
Everything else is correct.
Try this @rachaelwalker
Past Due Flag =
IF(
ISBLANK( 'IV_Product'[Ship Date] ),
BLANK,
IF(
'IV_Product'[Install Date] > 'IV_Product'[Ship Date],
1,
0
)
)
If ShipDate is blank, it returns blank, otherwise it does your normal 1/0 result.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingJust a small thing you missed is that you didn't add parenthesis after BLANK. It Should be BLANK().
Everything else is correct.
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |