Forum Discussion
'Does not end with'
Hello,
I have a location table. How do I filter (exclude) location that end in B? Unfortunately, I could not find a filter for 'does not end with'. Thanks.
Create a Calculated Column:
You can add a new calculated column to your table using the DAX function RIGHT combined with LEN to check the last character of each location. If it's "B", assign a value that signifies exclusion. Here's the DAX formula:FilteredLocation =IF(RIGHT('Table'[Column1], 1) = "B",BLANK(),'Table'[Column1])Then you can hide blank from filter
If it helps Please Mark as a solution!
For more Power BI Tips and Trick check out https://powertipstricks.blogspot.com/ blog
4 Replies
- PijushRoyCommunity Champion
- OrosPost Prodigy
- PowerBigginerHelper II
Create a Calculated Column:
You can add a new calculated column to your table using the DAX function RIGHT combined with LEN to check the last character of each location. If it's "B", assign a value that signifies exclusion. Here's the DAX formula:FilteredLocation =IF(RIGHT('Table'[Column1], 1) = "B",BLANK(),'Table'[Column1])Then you can hide blank from filter
If it helps Please Mark as a solution!
For more Power BI Tips and Trick check out https://powertipstricks.blogspot.com/ blog- OrosPost Prodigy