Forum Discussion
Filter with text contains with AND Logic
- 4 years ago
Hi Jayaselvan
Please refer to attached sample file with the solutionFiltered Value = VAR SelectdBrands = VALUES ( Brands[Brand] ) RETURN SUMX ( VALUES ( 'Table'[brand] ), VAR CurrentBrands = 'Table'[brand] VAR String1 = SUBSTITUTE ( CurrentBrands, "[", "" ) VAR String2 = SUBSTITUTE ( String1, "]", "" ) VAR String3 = SUBSTITUTE ( String2, "“", "" ) VAR String4 = SUBSTITUTE ( String3, "”", "" ) VAR String5 = SUBSTITUTE ( String4, " ", "" ) VAR Items = SUBSTITUTE ( String5, ",", "|" ) VAR Length = COALESCE ( PATHLENGTH ( Items ), 1 ) VAR T1 = GENERATESERIES ( 1, Length, 1 ) VAR T2 = ADDCOLUMNS ( T1, "@Brand", PATHITEM ( Items, [Value] ) ) VAR T3 = SELECTCOLUMNS ( T2, "@@Brand", [@Brand] ) VAR T4 = INTERSECT ( T3, SelectdBrands ) RETURN IF ( COUNTROWS ( SelectdBrands ) = COUNTROWS ( T4 ), CALCULATE ( SUM ( 'Table'[value] ) ) ) )
Hello
Please take a look on my solution for that
https://1drv.ms/u/s!AkcWVrMFkXs1h7MWr8PnmrO3yP-_VA?e=x9koO4
any question please ask
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC
- Jayaselvan4 years ago
Helper II
Hello,
Thanks for helping me out.
But I can't access the link(https://1drv.ms/u/s!AkcWVrMFkXs1h7MWr8PnmrO3yP-_VA?e=x9koO4) which you shared.
- onurbmiguel_4 years ago
Power Participant
hello again,
Can you try with different browser, i test it in chrome with incognito windows and works
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC- Jayaselvan4 years ago
Helper II
Hello,
Feeling sorry to bother you again.
Still I can't access the link even in Google Chrome Incognito as well.
This is the version I my using in my Windows 10 machine.