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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
CharnanK
Helper I
Helper I

New Column

I need to create a column in a table, based on another column data.  

New Column: Business Unit

If LV Sector = North Coast Sector &/or Southern Sector - I want the new column to Show Regional operations

Please help!!!

1 ACCEPTED SOLUTION
Uzi2019
Community Champion
Community Champion

Hi @CharnanK 

 

Please create the following column
BU =IF(
          OR(
                 'Table'[LV Sector] = "North Coast Sector" , 'Table'[LV Sector] = "Southern Sector"),
          "Regional Operations",
           "-"
         )

 

If my post helps please give kudos and accept it as a solution!
Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @CharnanK ,

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please feel free to let me know.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Uzi2019
Community Champion
Community Champion

Hi @CharnanK 

 

Please create the following column
BU =IF(
          OR(
                 'Table'[LV Sector] = "North Coast Sector" , 'Table'[LV Sector] = "Southern Sector"),
          "Regional Operations",
           "-"
         )

 

If my post helps please give kudos and accept it as a solution!
Thanks

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

OKay so that worked.  I have 10 names that I want to turn into 5 in another column - is that too long for the DAX? Doesn't seem to want to work out after 2

 

Uzi2019
Community Champion
Community Champion

Hi @CharnanK 

Please take calculated column either click on 3 dots on right side of table name you will get these options

Uzi2019_0-1698902035793.png

 

Or Under modelling tab you will get New column

Uzi2019_1-1698902096000.png

 


Please share the condition you want to implement.  I will write correct DAX
If should work if there is 10 condition but you cant take OR(). 
OR() allows only 2 expression.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Uzi2019
Community Champion
Community Champion

Hi @CharnanK 
whatever data you want just write in excel input and output.

Or you can give simple confition If ("condition",this,that)

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Clicking on Custom Column, and the box doesn't allow me to do the 'IF' Function
I want this: 

CharnanK_0-1698842392279.png

to have another column where

Southern Sector = Regional Operations

Metro SW Sydney = Metropolitan Operations 

etc.......

amitchandak
Super User
Super User

@CharnanK , Try a new column like

 

Business Unit =
IF(
'Table'[LV Sector] = "North Coast Sector" || 'Table'[LV Sector] = "Southern Sector",
"Regional Operations",
BLANK()
)

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.