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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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 PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors