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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cesarwheezer
New Member

Table Transformation

Hello everyone,

 

I am attempting to add four new column headers under the "Forecast Description" section and populate them with the corresponding field values. I have created an Excel table to illustrate what I am aiming to achieve. A screenshot of the dataset in the editor is included below.

 

cesarwheezer_1-1763000908631.png

 

cesarwheezer_2-1763001007129.png

 

 

1 ACCEPTED SOLUTION
v-pgoloju
Community Support
Community Support

Hi @cesarwheezer,

 

Thank you for reaching out to the Microsoft Fabric Forum Community, and a special thanks to the @scott2718@BA_Pete  and @Shubham_rai955  for their prompt and helpful responses.

Could you please provide a bit more information, as suggested by @BA_Pete , so we can assist you further?

 

Best regards,
Prasanna Kumar

 

View solution in original post

8 REPLIES 8
cesarwheezer
New Member

Hello team,

I was able to use the existing dataset transformation to create my visuals. Appreicate all your help!

Did you end up adding in an additional identifier to ensure you had the 4 pivoted fields correctly grouped? I don't think your solution was feasible without doing that, unless you aggregated somehow to reduce the dataset to only unique forecasted description category and work order ID combinations

v-pgoloju
Community Support
Community Support

Hi @cesarwheezer,

 

Thank you for reaching out to the Microsoft Fabric Forum Community, and a special thanks to the @scott2718@BA_Pete  and @Shubham_rai955  for their prompt and helpful responses.

Could you please provide a bit more information, as suggested by @BA_Pete , so we can assist you further?

 

Best regards,
Prasanna Kumar

 

BA_Pete
Super User
Super User

Hi @cesarwheezer ,

 

This looks like an XY Problem to me.

Can you give some detail as to WHY you want to restructure your table like this please?

It's currently in the optimal format for Power BI model reporting so, if you can explain what you're actually trying to achieve in the end, there may be a quicker/easier/more robust way to achieve that goal.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Shubham_rai955
Memorable Member
Memorable Member

Here is the simplest way to do this in Power Query.

You want:
Each Work Order ID will end up with four new columns, one for each Forecast Description.
Each column should show its matching Field Value.

Think of it like pivoting the data.

Do this:

  1. Select the column Forecast Description.

  2. Go to Transform, then Pivot Column.

  3. For Values Column, choose Field Value.

  4. For Advanced Options, choose Dont Aggregate.

Power Query will create four new columns automatically.
Each column will show the Field Value for that Forecast Description, exactly like your Excel example.

scott2718
Advocate I
Advocate I

Looks like you just need to use the Pivot transformation. 

 

Select Field Description as the field to pivot, and then in the aggregation options select Don't Aggregate.

 


pivot.jpg

Not quite. I tried the pivot column function. The field values are not listed the way I want it. At the end of thread, I attached a screenshot of exactly what I want to see as the final transformation. 

 

cesarwheezer_0-1763036571487.png

cesarwheezer_1-1763036618743.png

 

cesarwheezer_2-1763036705339.png

 

 

I think your data is not good. I can see that your work order ID = 1 has multiple dates for adjusted forecast. But since the value field is in the same column instead of next to it, you can't guarantee you will select the right pair of values if you try to unpivot it.

 

Do you have another data source that has dates and dollars in adjacent fields? Or an extra field that provides another ID? Without a way to make each date/dollar pair unique, you probably won't accurately pivot this.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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