Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

A function that displays all other values than some specified in a column! Which function?

Hi,

I have a column with following values;

 

CARUSO93_0-1653032626624.png

I want to display all possible values other than A, B, C, D or Z.

I need a function that returns any value other than A, B, C, D or Z as data will continually be added and I want the function to have the opportunity to catch and grab data (0, 1, S and even blank).

 

What function should I use? Filter or allexcept? I'm unsure.....

 

Many thanks!! 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Since you also want to capture blank values, I use 'others' in the results returned by the formula to differentiate the results.

Please new a column.

Column2 = IF( NOT 'Table'[Column1] IN {"A","B","C","D","Z"},'Table'[Column1],"others")

This way blank values can also be distinguished.

vcgaomsft_0-1653373034076.png

vcgaomsft_1-1653373113891.png

Attached PBIX file for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

Since you also want to capture blank values, I use 'others' in the results returned by the formula to differentiate the results.

Please new a column.

Column2 = IF( NOT 'Table'[Column1] IN {"A","B","C","D","Z"},'Table'[Column1],"others")

This way blank values can also be distinguished.

vcgaomsft_0-1653373034076.png

vcgaomsft_1-1653373113891.png

Attached PBIX file for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Hi,

@Momie2005 , @tamerj1 

I tried, but receives this message;

CARUSO93_0-1653037299791.png

 

What is wrong?

 

Hi @Anonymous 
You can create a new tabel with this code or otherwise use to filter data. Example:

Filtered Qty =
CALCULATE (
    SUM ( 'Stock Item Master Table'[Qty] ),
    FILTER (
        'Stock Item Master Table',
        NOT ( 'Stock Item Master Table'[Maintenance Contract Code]
            IN { "A", "B", "C", "D", "Z" } )
    )
)
Momie2005
Frequent Visitor

try this one: FILTER ( your_table , NOT ( your_table [colomn]IN { "q", "b", "d", "s", "Z" } ) )

tamerj1
Super User
Super User

Hi @Anonymous 

something like

FILTER ( TableName, NOT ( TableName[ColumnName] IN { "A", "B", "C", "D", "Z" } ) )

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.