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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
dommyw277
Helper III
Helper III

More than 1 IF statements for ID's

Hi, Im trying to add a column with several if statements. 

I have subscription ids eg abc1, def1, fgh1 and I want to say if abc1 then call it Azure Sub 1, if def1 then Azure Sub 2 etc?

 

How can i do this please? 

1 ACCEPTED SOLUTION

New Column = SWITCH([Subscription ID],"abc1","Azure Sub1","def1","Azure Sub2","fgh1",Azure Sub3","Other")

View solution in original post

4 REPLIES 4
dommyw277
Helper III
Helper III

Thank you so much 🙂

lbendlin
Super User
Super User

How is this related to Power BI? What is IDS?

i meant id's - im trying to create a new column that says if id = such then resolve it as azure1 etc, make sense?

New Column = SWITCH([Subscription ID],"abc1","Azure Sub1","def1","Azure Sub2","fgh1",Azure Sub3","Other")

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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