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! 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!
User | Count |
---|---|
56 | |
54 | |
53 | |
48 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |