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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Olvrapha
Regular Visitor

Power BI - headers to lines and sum the values of them (Like summary the values of columns)

Hello everyone!

I'm a beginner on Power BI and i need some help, please.

I'm making a report on Power Bi with the answers of my survey about investments, some of asks have multiple choices and that choices are transformed into column... so, how can i do a unique column with this multiple choices of each participant? is it possible to do this?

Obs. The multiple choices are columns ("33.25.1", "33.25.2",...,) and the answers is "1" in lines.

Asks are Columns and answers are linesAsks are Columns and answers are linesIf i put in "Categoria" appears "(Em Branco)"If i put in "Categoria" appears "(Em Branco)"

1 ACCEPTED SOLUTION
mlsx4
Super User
Super User

Hi @Olvrapha 

 

I will do the following:

  • First, duplicate the values and get only the ID of the answer, and the columns related to the multiple choice option. Like this

mlsx4_0-1689233140461.png

 

  • Then, unpivot the column:

 

mlsx4_1-1689233283234.png

 

  • Replace the values 1, 2, 3...by the real answer and relate the second table with the original one by ID

Not sure if this helps, but it may work

View solution in original post

3 REPLIES 3
mlsx4
Super User
Super User

That's nice @Olvrapha !!

Don't forget to mark it as solved. It could be useful for other users.

mlsx4
Super User
Super User

Hi @Olvrapha 

 

I will do the following:

  • First, duplicate the values and get only the ID of the answer, and the columns related to the multiple choice option. Like this

mlsx4_0-1689233140461.png

 

  • Then, unpivot the column:

 

mlsx4_1-1689233283234.png

 

  • Replace the values 1, 2, 3...by the real answer and relate the second table with the original one by ID

Not sure if this helps, but it may work

It worked! Thank you very much!! 💖

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.