cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Betissa
Helper I
Helper I

help - how can i use condition ?

Hello everyone;

I would like to create a column1 in a table from another column0;
Column1 must contain letters as follows:
If a text field in column 0 starts with the letter A write A in column 1 if this field begins with the letter b write b otherwise write c.
I try the IF function but it accepts only one condition;
I also used the SWITCH function but it does not support the character strings;
Your suggestions?

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hi @Betissa

 

Create a calculated column and use a Switch and Left Function.

 

Switch.png




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

hi @Betissa

 

Create a calculated column and use a Switch and Left Function.

 

Switch.png




Lima - Peru

thank friend Smiley Wink

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors