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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.