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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors
Top Kudoed Authors