Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I nee apply below filter in dax query.
Please help to accomplish this requirement.
How to apply filter with not like [%A-Z%] in DAX (SSAS tabular) + powber BI
Thanks
Solved! Go to Solution.
HI @joshikakrishna,
You can use below calculate column formula to create a variable dictionary table to compare with current text column:
Contains Text = VAR dict = SELECTCOLUMNS ( GENERATESERIES ( 97, 122, 1 ), "UPPER", UNICHAR ( [Value] ), "LOWER", LOWER ( UNICHAR ( [Value] ) ) ) RETURN COUNTROWS ( FILTER ( dict, SEARCH ( [UPPER], [Text], 1, -1 ) > 0 || SEARCH ( [LOWER], [Text], 1, -1 ) > 0 ) ) > 0
In addition, you can also take a look at following blog which mentioned dax string comparison:
From SQL to DAX: String Comparison
Regards,
Xiaoxin Sheng
I would recommend using the search function (https://dax.guide/search/).
You can post an example of your data and I'll try to help
HI @joshikakrishna,
You can use below calculate column formula to create a variable dictionary table to compare with current text column:
Contains Text = VAR dict = SELECTCOLUMNS ( GENERATESERIES ( 97, 122, 1 ), "UPPER", UNICHAR ( [Value] ), "LOWER", LOWER ( UNICHAR ( [Value] ) ) ) RETURN COUNTROWS ( FILTER ( dict, SEARCH ( [UPPER], [Text], 1, -1 ) > 0 || SEARCH ( [LOWER], [Text], 1, -1 ) > 0 ) ) > 0
In addition, you can also take a look at following blog which mentioned dax string comparison:
From SQL to DAX: String Comparison
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |