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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
iglesias6
Helper II
Helper II

Unpivot a table with calculated columns & make a table with the info

Hello guys, I need some help 'Unpivoting' one table with calculated columns (In power bi) and then use that new table in order to display the unpivot result in a table visualization.

 

So I have my table named 'Audit Results'. This table has some info coming from an Excel file + my calculated columns:

From my Excel I have these column names:

iglesias6_0-1698765692650.png

And from my power BI I added these columns:

iglesias6_1-1698765751222.png

 

So I have that. I want to show a Table visualization which has the following structure:

Atribute                          -      Value

END OF SPRINT DEMO  -       Nice

END OF SPRINT DEMO  -       Poor

END OF SPRINT DEMO  -       Poor

....

EVAL_SPRINTHANDLING -     Poor

EVAL_SPRINTHANDLING -     Poor

EVAL_SPRINTHANDLING -     Poor

 

How can I do that? Any Ideas?

 

I believe that the best way is to unpivot my table but I dont know how to do that and then display it on a table visualization.

Please explain in detail if you know!

 

Thanks a lot

1 ACCEPTED SOLUTION

Hi @iglesias6,

 

You can try to create new columns in Power Query and then unpivot the columns.

Or you can write a new calculated table as below:

isjoycewang_0-1698853295405.png

 

 I create some dummy data for you here, so you could find more details and make it fit in your case.

demo file

 

Best Regards,

Joyce

View solution in original post

5 REPLIES 5
isjoycewang
Super User
Super User

Please consider unpivot the table in Power Query, it's a system automatic function.

isjoycewang_0-1698768278284.png

 

Yes, that doesnt help at all.

 

Its easy to do for the columns coming from the excel file of course.

 

But the problem here is to do it in those AND to do it on the calculated columns that follows them. If you have any help doing that pls respond!

Hi @iglesias6,

 

You can try to create new columns in Power Query and then unpivot the columns.

Or you can write a new calculated table as below:

isjoycewang_0-1698853295405.png

 

 I create some dummy data for you here, so you could find more details and make it fit in your case.

demo file

 

Best Regards,

Joyce

Yes! That was exactly what I needed it. Thanks a lot!

Great to hear it helps 🙂

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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