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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dommyw277
Helper II
Helper II

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 II
Helper II

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.