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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.