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,
How can I use DAX to look through ALL the DOCNUMBR column, and ONLY IF it contains the Letters "SLS" return the full SLS document number only in the column?
This is what I am trying to do:
DOCNUMBR | DOCDATE | Returned |
32134 | 11/17/2009 0:00 | |
SLS008123 | 3/31/2009 0:00 | SLS008123 |
SLS016930 | 12/18/2012 0:00 | SLS016930 |
36614 | 9/7/2010 0:00 | |
36676 | 10/7/2010 0:00 | |
SLS011542 | 9/7/2010 0:00 | SLS011542 |
69061 | 5/4/2016 0:00 | |
SLS 024166 | 4/14/2016 0:00 | SLS 024166 |
Solved! Go to Solution.
Returned = IF( NOT( ISERROR( FIND( "SLS", TableName[DOCNUMBR] ) ) ), TableName[DOCNUMBR], BLANK() )
Man, I can't believe I got to use the NOT(ISERROR(FIND())) trick twice in one day!
Proud to be a Super User!
Returned = IF( NOT( ISERROR( FIND( "SLS", TableName[DOCNUMBR] ) ) ), TableName[DOCNUMBR], BLANK() )
Man, I can't believe I got to use the NOT(ISERROR(FIND())) trick twice in one day!
Proud to be a Super User!
User | Count |
---|---|
70 | |
64 | |
62 | |
49 | |
28 |
User | Count |
---|---|
117 | |
75 | |
61 | |
54 | |
42 |