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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

IF DAX Statements

Hi, All I'm after help on this, 

 

I'm working on a list of suppliers of about 50 and I want to keep just 5 of the suppliers for a new column and make everyone else 'Others'

 

Please can I have a DAX formula that will output this? 

 

Many thanks.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

New Supplier Name =
IF (
    Sppliers[Supplier Name] IN { "Name1", "Name2", "Name3", "Name4", "Name5" },
    Sppliers[Supplier Name],
    "Others"
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

New Supplier Name =
IF (
    Sppliers[Supplier Name] IN { "Name1", "Name2", "Name3", "Name4", "Name5" },
    Sppliers[Supplier Name],
    "Others"
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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