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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
patem2
Regular Visitor

Unpivot and Add an Additional Category Field

Hi guys,

 

This is my 1st post on here so hopefully the 1st of many 😀

 

I've been trying without success to shape the table data below in to something workable.

 

Each column after the 1st 3 has a monthly value, however contained within each month is a category of "Blended", "Fixed Cost", "Internal" and "T&M". I need to unpivot the all columns to the right of Column 1, 2 and 3, but include these additional categories by month.

 

For example there should be an additional column with the 4 variable fields above and should look something like this when unpivotted (the category column below is the new column).

 

The picture below shows the current shape of the data, any assistance you could offer would be hugely appreciated.

 

Thanks in advance for your support.

 

DerivcoColumn1RoleMonthCategoryFeb-21
DerivcoConfirmedDevFeb-21Fixed Cost10000
DerivcoConfirmedAutoFeb-21Fixed Cost10000
DerivcoConfirmedArchFeb-21Fixed Cost10000
DerivcoConfirmedProdFeb-21Fixed Cost 
DerivcoConfirmedScrumFeb-21Fixed Cost10000
DerivcoConfirmedBAFeb-21Fixed Cost10000
DerivcoConfirmedQASMEFeb-21Fixed Cost 
DerivcoConfirmedSecFeb-21Fixed Cost10000
DerivcoConfirmedMCFeb-21Fixed Cost10000
DerivcoConfirmedDevMar-21T&M44000
DerivcoConfirmedAutoMar-21T&M50000
DerivcoConfirmedArchMar-21T&M0
DerivcoConfirmedProdMar-21T&M0
DerivcoConfirmedScrumMar-21T&M19500
DerivcoConfirmedBAMar-21T&M0
DerivcoConfirmedQASMEMar-21T&M0
DerivcoConfirmedSecMar-21T&M0
DerivcoConfirmedMCMar-21T&M0

 

Example Data.png

1 REPLY 1
v-xiaoyan-msft
Community Support
Community Support

Hi@patem2,

 

I'm afraid I didn't understand your needs accurately.

A more detailed sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
How-to-Get-Your-Question-Answered-Quickly 

Hope it helps.

 

Best Regards,
Caitlyn Yan

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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