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
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
Super User
Super User

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
v-binbinyu-msft
Community Support
Community Support

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
Super User
Super User

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

 

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!!!

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

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.