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

Load table with calculated formula intact

I have, for example, a table with two columns in excel. The first is a text field and the second is a calculated column:

     A                 B

1   Name         Calculated Column

2    Mr X           =A2

 

I then query this table via power query and load the results back to another worksheet. The resulting table has two text columns.

    A                   B
1 Name           Calculated Column
2 Mr X              Mr X

 

Can you clarify if it is possible to actually return the formula as before ( ie so the formula  = A2 is in the new table's cell B2 replicating the original calculated column) and not return the result of the calculated column as hard coded text. If yes, how?

 

Thanks 

 

1 ACCEPTED SOLUTION

Thanks for your help on this but formula.text still doesnt bring the column in as a calculated column.

 

Looking into it all further today I have found a workaround solution - if I  (i) initially just query the first column, (ii)  load it back into the workbook as a new table, (iii) then insert a new column to the right in the new table and (iv) then add the formula in the new column it creates a calculated column which refreshes everytime the original table data is updated and the power query refreshed!

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

You could try the Formulatext function in Excel before you load it to Power Query. Then you are getting the actual formulas.

Thanks for your help on this but formula.text still doesnt bring the column in as a calculated column.

 

Looking into it all further today I have found a workaround solution - if I  (i) initially just query the first column, (ii)  load it back into the workbook as a new table, (iii) then insert a new column to the right in the new table and (iv) then add the formula in the new column it creates a calculated column which refreshes everytime the original table data is updated and the power query refreshed!

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors