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
bolabuga
Helper V
Helper V

[Calculated column based on number of characteres]

Hello everyone,

 

Suposing i have a colum "a" with data in format:

 

abc
5000700150007001
880019001880019001

 

I want to create column b e c, i have 400.000 rows that varies in size, 8 or 9 characters. Is there a way to count the size to use the count in a "if" statment like --> IF( "8 CHARACTERS" ; LEFT(A;5);LEFT(A;6)). the "001" is not a problem since it will always be RIGHT(A;3).

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@bolabuga

 

hi, with LEN function

 

https://msdn.microsoft.com/en-us/library/ee634917.aspx

 

 




Lima - Peru

@Vvelarde

 

Thks, that solves the problem.

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.