cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Qualube Helper II
Helper II

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

1 ACCEPTED SOLUTION

Accepted Solutions
jenelrosales Resolver II
Resolver II

Re: Column filtering based on filtered value

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!

View solution in original post

3 REPLIES 3
jenelrosales Resolver II
Resolver II

Re: Column filtering based on filtered value

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!

Highlighted
Qualube Helper II
Helper II

Re: Column filtering based on filtered value

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.

jenelrosales Resolver II
Resolver II

Re: Column filtering based on filtered value

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!

View solution in original post

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors