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
amitchandak
6 years agoSuper User
Anonymous , add a measure like this with other not summarized data
calculate(countrows(Table),containsstring(Table[Client IP],"127"))
https://docs.microsoft.com/en-us/dax/containsstring-function-dax
other option
Anonymous
6 years agoNot applicable
Thanks, amitchandak! Is there a way to just filter it? So it will still return other columns like email, browser, etc.
I tried adding a filter command but this error message showed:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Thank you!!