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!View all the Fabric Data Days sessions on demand. View schedule
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
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!
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 6 | |
| 5 | |
| 3 |