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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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