Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |