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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 9 | |
| 7 | |
| 6 |