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
Anonymous
Not applicable

Can't subtract

I  just want the characters to the right of the word Breaker in one column (variable number to the left). If there is an easier way, let me know. I got close, but I want to subtract 7 from the number of charaters in the RIGHT formula so it also removes "reaker". However if I subtract in either the Char or GS_sec_dis column, it throws an error. I tried making it text and moving it around, but it keeps throwing an error. 
 
GE_sec_dis = if(and('Maximo Data'[manufacturer]="GENERAL ELECTRIC", 'Maximo Data'[classstructure_classificationid]="CB"), right('Maximo Data'[description], 'Maximo Data'[Char]),blank())

astarrett_0-1695074126933.png

GE_sec_dis = if(and('Maximo Data'[manufacturer]="GENERAL ELECTRIC", 'Maximo Data'[classstructure_classificationid]="CB"), right('Maximo Data'[description], 'Maximo Data'[Char]-7),blank())

astarrett_1-1695074169018.png

astarrett_2-1695074190088.png

 

 

 

1 ACCEPTED SOLUTION

Oh, yeah. Way easier in Power Query. Just split column by delimiter, custom delimiter, " breaker "

View solution in original post

5 REPLIES 5
vicky_
Super User
Super User

vicky__0-1695076693227.png

Characters to Right = RIGHT('Table'[Column1], LEN('Table'[Column1]) - FIND("Breaker ", 'Table'[Column1], 1, 1) - 7)

You can use the FIND or SEARCH functions to find the "Breaker" keyword instead of using the char column (but both should still work fine). 

Anonymous
Not applicable

Sorry, should have added what Char is 

Char = len('Maximo Data'[description])-(SEARCH("breaker",'Maximo Data'[description],1,blank()))
When I make it this, it throws an error in the GE_Sec_dis column. 
Char = len('Maximo Data'[description])-(SEARCH("breaker",'Maximo Data'[description],1,blank()))-7
 
When I tried to make it all one formula, it threw error. I thought it was the search and len together, but looks like it was the -7 part. 
 
If I try adding another column, char2 = 'Maximo Data'[Char]-7
and changing reference to char2,  
GE_sec_dis = if(and('Maximo Data'[manufacturer]="GENERAL ELECTRIC", 'Maximo Data'[classstructure_classificationid]="CB"), right('Maximo Data'[description], 'Maximo Data'[char2]),blank())
I get this error astarrett_0-1695077576005.png

 

CoreyP
Solution Sage
Solution Sage

Might be better in Power Query? Split string after "breaker " then extract characters? I'm not totally clear what you want your output to be. 

Anonymous
Not applicable

I hace a column that looks like this. I want just the stuff after "breaker " in a different column.

 

xyz breaker 12a b34

wxzd breaker 3 24cd skl

jfdkla breaker q u o 24

 

Output

12a b34

3 24cd skl

q u o 24

 

Oh, yeah. Way easier in Power Query. Just split column by delimiter, custom delimiter, " breaker "

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.