Forum Discussion
Column filtering based on filtered value
Hi
I just need a quick pointer as to which dax function to use as I am a bit confused. I have a table with customer account numbers but I want to filter out certain ones (3 or 4 in a list of 12k) and leave the remainder.
I have spent alot of time looking on the web and reading the various function properties but I can't seem to decide which suits this task best.
I have tried FILTER but this seem to filter by desired values not the ones I don't want, I have also tried ALLEXCEPT but can't seem to find what other function to couple with this.
I am pretty new to DAX and want to learn the language so any pointers would be appreciated.
Thanks
- Anonymous7 years ago
You're welcome.
If the "<>" function solves your issue, please mark this issue as solved to help others that might encounter the same issue.
Thanks!
3 Replies
- AnonymousNot applicable
Hello,
What are you trying to achieve in your list? You could actually filter the column in Edit Query. Or if you are trying to calculate something and you want to leave out specific Account Names, you could use CALCULATE function and in the FILTER part, you could use this:
FILTER( TableName, Table Name [Account Numbers] <> Account Number 1 || Table Name [Account Numbers] <> Account Number 2 .... )
Hope this helps!
- QualubeHelper II
Many thanks for the pointer I was almost there, just wasn't aware of <> so the measure I created just need this to achieve the filtered list desired.
- AnonymousNot applicable
You're welcome.
If the "<>" function solves your issue, please mark this issue as solved to help others that might encounter the same issue.
Thanks!