cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Qualube Regular Visitor
Regular Visitor

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 Regular Visitor
Regular Visitor

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
Highlighted
jenelrosales Regular Visitor
Regular Visitor

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!

Qualube Regular Visitor
Regular Visitor

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 Regular Visitor
Regular Visitor

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
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors