Forum Discussion
Anonymous
5 years agoNot applicable
DAX to filter tables by regular expression
Hello, I have following DAX code where I simply filter table gl by another table 'Sheet1' and sum values from gl: Actuals = CALCULATE(SUM('public gl'[movement]),FILTER(ALL('public gl'[gl_code],...
VahidDM
Super User
5 years agoHi Anonymous
Try to use Left dax code in a filter, something like this:
filter(Sheet1,left(Sheet1[gl_code],1)=1&&left(Sheet1[gl_code],1)=2)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos🙏!!
- Anonymous5 years agoNot applicable
Actually left DAX will not help here becouse gl_code could be 1*, 15* or full account 155 so in case of * it need to get all subaccounts.
- VahidDM5 years ago
Super User
Hi Anonymous
Can you share a sample of your data here? [In a Table Format]
Appreciate your Kudos!!