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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to write DAX to check the alphanumeric string. I know how to check the numeric string (ISNUM) but I think DAX are case sensitive so I am not sure how can I check alphanumeric string?
Solved! Go to Solution.
Hi @Ethanhunt123 ,
You can use SWITCH() function to check.
Column =
SWITCH (
[Column1],
"a1", TRUE (),
"a2", TRUE (),
"a3", FALSE (),
"a4", FALSE ()
)
Or, there is a workaround. You could create a keyword table (including the number of letters), and then refer to the link below to create a formula. Please refer to:
DAX – “CONTAINSX” – Finding if a value in table 1 has a matching value in table 2
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Ethanhunt123 ,
Sorry to disturb you...
But did I answer your question ? Please mark my reply as solution. Thank you very much.
Best Regards,
Stephen Tao
Hi @Ethanhunt123 ,
You can use SWITCH() function to check.
Column =
SWITCH (
[Column1],
"a1", TRUE (),
"a2", TRUE (),
"a3", FALSE (),
"a4", FALSE ()
)
Or, there is a workaround. You could create a keyword table (including the number of letters), and then refer to the link below to create a formula. Please refer to:
DAX – “CONTAINSX” – Finding if a value in table 1 has a matching value in table 2
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Ethanhunt123 , on the contrary, DAX isn't case-sensitive even if you use strict equal to (==) operator; but "==" does distinguish BLANK() from 0 or "".
You might want to turn to Power Query for such case-sensitiveness tests.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@amitchandak This old solution is how to check numeric string. I need to check alphanumeric string
What are you trying to check? That it is/is not numeric or that it contains something?
Check for what?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |