Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Oros
Post Prodigy
Post Prodigy

'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.

 

Oros_1-1711370636686.png

 

Oros_0-1711370562130.png

 

2 ACCEPTED SOLUTIONS
PijushRoy
Super User
Super User

Hi @Oros 
You can try the End With option in the Power Query editor

PijushRoy_0-1711371641579.png

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

PowerBigginer
Helper II
Helper 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]
)
PowerBigginer_0-1711372181604.png

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

View solution in original post

4 REPLIES 4
PowerBigginer
Helper II
Helper 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]
)
PowerBigginer_0-1711372181604.png

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

Hi @PowerBigginer ,

 

It works!  Thanks a lot!

PijushRoy
Super User
Super User

Hi @Oros 
You can try the End With option in the Power Query editor

PijushRoy_0-1711371641579.png

 


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Hi @PijushRoy ,

 

It works too!  Thanks.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.