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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
npatten
Helper II
Helper II

summarize data by cell values

Hi--

 

Trying to solve a summarization problem. I'm working with survey data for a client. Currently the data output is structed with questions as the column headers, and the cell values (converted from text to numerical) are the responses, something like this: 

 

Q1Q2Q3Q4Q5
11100
01111
11000
01011
10001
01110

 

However, my clients are very interested in stacked charts to review survey responses, so I need the results to be transformed into something like this:

 

 10
Q132
Q241
Q330
Q430
Q530

 

This does is not seem to be a transpose or unpivot problem (I've tried), but I suspect it's a sophisticated summarization problem. My DAX skills are decent but not amazing. I have created lots of tables using the SUMMARIZE function, but I just can't seem to wrap my head around this problem. Any help would be very appreciated. 

 

Thank you in advance!

1 ACCEPTED SOLUTION
calerof
Impactful Individual
Impactful Individual

Hi @npatten,

 

It is indeed a Power Query transformation with Unpivot. See:

 

Unpivot all columnsUnpivot all columnsShow in a matrix with CountShow in a matrix with Count

Hope it helps.

Regards,

Fernando

 

View solution in original post

2 REPLIES 2
calerof
Impactful Individual
Impactful Individual

Hi @npatten,

 

It is indeed a Power Query transformation with Unpivot. See:

 

Unpivot all columnsUnpivot all columnsShow in a matrix with CountShow in a matrix with Count

Hope it helps.

Regards,

Fernando

 

Thanks Fernando, it appears I was just over thinking the problem!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.