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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Try ISBLANK() instead of <> BLANK().
VAR _test =
ISBLANK(Contracten[Verwachte datum contract km bereikt])
Also, are you sure it is blank? You might want to read this article on blanks, nulls, empty (""), etc.
EDIT: I didn't notice how you were using the variable later. I think @az38 has nailed the issue.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi @Anonymous
your _test variable returns BOOLEAN what that cannot be used as second argument in DATEDIFF()
what value do you need there?
whats your desired result for row with Contracten[Verwachte datum contract km bereikt] <> BLANK() ?
HI @az38 I would try the value (date) of the rows except the blank rows of Contracten[Verwachte datum contract km bereikt]
Regards,
Ezz
@Anonymous
maybe it will be enough to try a simple version of yours statement? Like
ColumnName =
IF(
Contracten[Verwachte datum contract km bereikt] <> BLANK()
&& DATEDIFF ( UTCTODAY (); Contracten[Verwachte datum contract km bereikt]; MONTH ) <= 4;
"EindContractKM ";
BLANK ()
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!