Forum Discussion
Anonymous
6 years agoNot applicable
Filter Data based on values starting with certain string
Hi! I want to ask if there is a way for me to filter the table below using DAX based on the Client IP address like the SQL query below: select * from table where Client IP like '%127%'; ...
- Anonymous6 years ago
This Solved my question. Thanks for your help!!
https://stackoverflow.com/questions/38767000/starts-with-in-an-expression-using-dax
Greg_Deckler
6 years agoCommunity Champion
Anonymous - You can, you would use SEARCH or FIND
You might want to create a "selector" like IF(SEARCH(...),1,0)
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534
Anonymous
6 years agoNot applicable
Hi Greg_Deckler - Thanks! I shall try this solution too.
I just wanted to filter those %% items and reflect the columns to my table.