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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
brickanalyst
Resolver I
Resolver I

Find a way to pivot columns in a pattern to pivot columns conditionally?

Hello guys,

my question is a bit confusing for a moment, so I asked for ideas.

brickanalyst_0-1725377506974.png


think about two columns and we have all the attributes and values. 
I want 6 columns so pattern is ending with _1 _2 _3 _4 _5 _6 so that I will have 6 different columns 
or I just want to pivot these 6 columns out of possibly 10

Is it possible? 

1 ACCEPTED SOLUTION
brickanalyst
Resolver I
Resolver I

I have found the answer:

split by delimeter _ 
so it's going to be S_M_2 and 1 etc.

then take the splitted column which values are 1,2,3,4,5,6 and pivot to the respected values.

there you go.

View solution in original post

1 REPLY 1
brickanalyst
Resolver I
Resolver I

I have found the answer:

split by delimeter _ 
so it's going to be S_M_2 and 1 etc.

then take the splitted column which values are 1,2,3,4,5,6 and pivot to the respected values.

there you go.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.