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
aqeel
Regular Visitor

need help in unpivoting forecasted values based on weeks

I have two tables forecasted values and actual values, 
forecasted table has data in one row with all 4 or 5 weeks you can see in the screen shot below. I am facing problem to unpivot this data while unpivoting matches does not match.
aqeel_0-1715952932944.png
Actual table has values in one column and date in a separate column, I need to make forecasted table in same grain to make relationship and create visuals actual value vs forecast values. 

aqeel_1-1715953012535.png
@mh2587

 

 

 

1 REPLY 1
Anonymous
Not applicable

Hi, @aqeel 

Select the column that represents the week. Right-click the selected column and select Unpivot Columns, or go to the Transform tab and select Unpivot Other Columns. This creates two new columns: one for the number of weeks (for example, WeekNumber) and one for the corresponding value (for example, Value). Rename columns as needed.

You can check the following link to learn more about Unpivot:

Perform common query tasks in Power BI Desktop - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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