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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
vijayvizzu
Helper III
Helper III

Dynamic update column names

Hi, I have a monthly budget table contains project id, Jan Budget, Jan Forecast and so on till Dec. Each month will have two columns Budget and Forecast, whenever the month passed, we will rename Forecast to Actual (Jan Forecast --> Jan Actual). Budget column will remain intact. Now when we change the column name, power query will give error "Column not found" because of rename.

So, please suggest, how would i handle this issue to avoid future errors ?

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@vijayvizzu , first unpivot this table and then try to use it

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
v-janeyg-msft
Community Support
Community Support

@vijayvizzu  Any updates?

v-janeyg-msft
Community Support
Community Support

Hi, @vijayvizzu 

 

You obviously used 'pivot' in your table, and the column name you mentioned is no longer in the table presented at the end. What kind of results do you want to get in the picture you displayed?

 

Best Regards

Janey Guo

 

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

vijayvizzu
Helper III
Helper III

My data looks like as below, please suggest

 

vijayvizzu_0-1622717395484.png

 

Fowmy
Super User
Super User

@vijayvizzu 

The first point I note here is that you should never have pivoted data in your tables, it should always be in unpivoted format. Jan, Feb, etc. are not supposed to be columns they must be in a   column named Month Names, preferably in a date table. SAme goes with actual and forecast could be arranged in columns. Please refer to these videos on how to handle them:

https://www.youtube.com/watch?v=Vff2kRBM95o

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@vijayvizzu , first unpivot this table and then try to use it

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.