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
Anonymous
Not applicable

unpivot table with nested headers (date field)

I have the following excel.

UnpivotTable.png

.

I need the output as following

SlNoCompanyDateFieldValue
1Suzon29-11-2018Max unit usage2290.68
2Suzon29-11-2018Max unit usage %22.90679504
3Suzon29-11-2018Max size usage493.43
4Suzon29-11-2018Max size usage %4.93
5Suzon30-11-2018Max unit usage2603.84
6Suzon30-11-2018Max unit usage %26.04
7Suzon30-11-2018Max size usage491.42
8Suzon30-11-2018Max size usage %4.91
9Suzon01-12-2018Max unit usage2158.55
10Suzon01-12-2018Max unit usage %21.59
11Suzon01-12-2018Max size usage503.36
12Suzon01-12-2018Max size usage %5.03
13Ticson29-11-2018Max unit usage3624.43
14Ticson29-11-2018Max unit usage %36.24426464
15Ticson29-11-2018Max size usage3662.27
16Ticson29-11-2018Max size usage %36.62
17Ticson30-11-2018Max unit usage3612.19
18Ticson30-11-2018Max unit usage %36.12
19Ticson30-11-2018Max size usage3680.37
20Ticson30-11-2018Max size usage %36.80
21Ticson01-12-2018Max unit usage3341.74
22Ticson01-12-2018Max unit usage %33.42
23Ticson01-12-2018Max size usage3408.31
24Ticson01-12-2018Max size usage %34.08
25Dicche29-11-2018Max unit usage97.87
26Dicche29-11-2018Max unit usage %0.978684511
27Dicche29-11-2018Max size usage1417.31
28Dicche29-11-2018Max size usage %14.17
29Dicche30-11-2018Max unit usage96.72
30Dicche30-11-2018Max unit usage %0.97
31Dicche30-11-2018Max size usage1342.56
32Dicche30-11-2018Max size usage %13.43
33Dicche01-12-2018Max unit usage93.01
34Dicche01-12-2018Max unit usage %0.93
35Dicche01-12-2018Max size usage1315.61
36Dicche01-12-2018Max size usage %13.16

 

Could you please help me on this to achieve it in Power BI Desktop.

 

Thanks in advance.

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

My solution here should help - Rearrange a multi heading dataset into a single heading one which is Pivot ready.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-lili6-msft
Community Support
Community Support

hi, @Anonymous

Do you mean that you want to transform data like your screenshot into the output you need?

If so, how do you import the data into power bi, I think your expected output should be the basic data structure.

And the screenshot should be a visual.

If the data in excel has the data model, you could use Import Excel workbooks into Power BI Desktop

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.