The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I am having some difficulty of If condition result.
I have two columns:
Many thanks in advance for any help!
Solved! Go to Solution.
Ah, OK. Then try the same thing except as a number.
if Number.Mod([%DATE_KEY], 10000) = 1201 then [%DATE_KEY] else null
Try creating a custom column with this:
if Text.End([%DATE_KEY], 4) = "1201" then [%DATE_KEY] else null
Hello @AlexisOlson,
Thanks for Your help, unfortunately %DATE_KEY is integer (number) and it does not work with syntax Text.End.
Ah, OK. Then try the same thing except as a number.
if Number.Mod([%DATE_KEY], 10000) = 1201 then [%DATE_KEY] else null