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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.