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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello! Need your help 🙂
How do I write this sql expression:
LIKE "__1__" in DAX?
I'd Use MID(3,1) = 1, but I need exact two any characters after "1" as well and mid works from the left only?
Thanks for help!
Solved! Go to Solution.
Hi @siyuri ,
I would do the following:
So in DAX, I'd use this formula
=
VAR PositionOf1 =
FIND ( "1", 'Table'[Column], 1, BLANK () )
RETURN
MID ( 'Table'[Column], PositionOf1 - 2, 5 )
Hi @siyuri ,
I would do the following:
So in DAX, I'd use this formula
=
VAR PositionOf1 =
FIND ( "1", 'Table'[Column], 1, BLANK () )
RETURN
MID ( 'Table'[Column], PositionOf1 - 2, 5 )
wow...so there is really no straight forward way... Thank you for this solution!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.