cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PieroPinzone
Regular Visitor

HOW TO EXTRACT UPPERCASE CHARACTERS FROM A COLUMN USING A CUSTOM COLUMN IN POWER QUERY EDITOR

Hi guys, as shown in the picture, I have a column containing regions, states etc all togheter and I'd like to extract regions (that are uppercase, like AFRICA) using a custom column in power query editor (second picture). Can anyone tell me wich is the right pattern? (like "A"..."Z" in the second picture)

Screenshot (17).png



Screenshot (15).png




1 ACCEPTED SOLUTION
latimeria
Solution Supplier
Solution Supplier

hi @PieroPinzone ,

 

Try this

= Table.AddColumn(Source, "Custom", each if [Country] = Text.Upper([Country]) then [Country] else "")

 

View solution in original post

1 REPLY 1
latimeria
Solution Supplier
Solution Supplier

hi @PieroPinzone ,

 

Try this

= Table.AddColumn(Source, "Custom", each if [Country] = Text.Upper([Country]) then [Country] else "")

 

Helpful resources

Announcements
March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Kudoed Authors