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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.