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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jacob2102
Helper II
Helper II

How to change the data structure?

Hi,

 

I want to insert to my dashboard a new data source that contains information about hours dedicated for different employees to each taks. In the rows of the document we have the different task, and in columns the days of the year. This is an example.

TASK01/01/1902/01/1903/01/1904/01/1905/01/1906/01/1907/01/1908/01/1909/01/19
Task 112 423  1
Task 22 212 83 
Task 313 121 3 
Task 443

4

1 3  7
Task 5  2121 2 

This file contains approximately 50 task and all days of the year. This is only an example.

 

If I insert this data source, obtain each day like an independent parameter.

example data source.JPG

 

How can I transform automatically the structure of the spreadsheet? I would like to obtain a structure similar to this:

Captura.JPG

 

In this case, each employee has a spreadsheet with their hours worked, so I want to attach the information of this employee to this data source.

 

Best regards.

Thanks.

Jacob

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@jacob2102 you should combine all files together and then unpivot the data and it will give you what you are looking for.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@jacob2102 you should combine all files together and then unpivot the data and it will give you what you are looking for.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks so much @parry2k !

This solution is perfect to add this data source with the right structure.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors