Forum Discussion
[DAX] Dynamic way to get numeric values [0..9] from string with no pattern.
- 11 months ago
You are totally correct, I had comeback from a meeting and had forgot to change the code to refer to the virtual colum I created with addcolumn.
My intial test which works but can become concumption heavy, esp when strings are lenghty:CONCATENATEX ( FILTER ( GENERATESERIES(1, LEN(txt)), MID(txt, [Value], 1) >= "0" && MID(txt, [Value], 1) <= "9" ), MID(txt, [Value], 1), "" )
You are totally correct, I had comeback from a meeting and had forgot to change the code to refer to the virtual colum I created with addcolumn.
My intial test which works but can become concumption heavy, esp when strings are lenghty:
CONCATENATEX (
FILTER (
GENERATESERIES(1, LEN(txt)),
MID(txt, [Value], 1) >= "0" &&
MID(txt, [Value], 1) <= "9"
),
MID(txt, [Value], 1),
""
)
Hi yel4h
Thank you for the update and for sharing the details of your initial approach. Could you please confirm if the issue has been fully resolved after using the virtual char column as suggested by danextian ? If you have any further questions or need additional clarification, please feel free to let us know and we will be happy to assist you further.
Regards,
Microsoft Fabric Community Support Team