Forum Discussion
kpost
3 years agoSolution Sage
Text value alphabetically between two other values, resolved as TRUE/FALSE
I have a column with text values such as: 16101X 16102X 16103X 16C01A 16C02A 16C03A etc. I want to add a calculated column that groups these using a switch statement like so: SWITCH(...
parry2k
3 years agoSuper User
kpost My take is the opposite of what you said, if you can do it at the backend, it is always advisable to do it there then doing it in Power BI. I'm sure if you have CASE logic in SQL, you can easily translate that into DAX. Not sure if I can be of further help.
- kpost3 years agoSolution Sage
I absolutely can do it in SQL, as SQL allows comparing text using comparison operators like <= etc.
Maybe this is the best solution after all. Thanks.