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
appley922
Frequent Visitor

Autofill formula columns for appended data

Hi everyone! Please help me, I have been searching and can't seem to find a solution. 

 

I have sales data that I've added custom columns using query editor. When I append a new month's sales data using "append queries" I find that the formulae in my custom columns have not extended to the freshly appended data. 

 

How can I extend this formula so that it will apply to new sales data that I append every month? 

 

Thank you so much! 

 

Regards,

Apple

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @appley922,

 

1.PNG

 

Power Query apply those transactions step by step. As you can see, "Added Custom" is a step before "Appended query", the custom column is only added to Table1, while Table2 keeps its original structure and values. That case, when you append them, custom columns only show in Table1, it won't be extended to the freshly appended data.

 

For your requirement, you can append query first and then add custom column. You have to choose "Append queries as new".

1.PNG2.PNG

5.PNG

 

Each month, you loaded a new query into desktop, you just need to adjust the M code in Advanced Editor like below. The formula of custom column will be automatically applied to the freshly appended data.

3.PNG4.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @appley922,

 

1.PNG

 

Power Query apply those transactions step by step. As you can see, "Added Custom" is a step before "Appended query", the custom column is only added to Table1, while Table2 keeps its original structure and values. That case, when you append them, custom columns only show in Table1, it won't be extended to the freshly appended data.

 

For your requirement, you can append query first and then add custom column. You have to choose "Append queries as new".

1.PNG2.PNG

5.PNG

 

Each month, you loaded a new query into desktop, you just need to adjust the M code in Advanced Editor like below. The formula of custom column will be automatically applied to the freshly appended data.

3.PNG4.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@appley922 Did you tried refreshing your data by clicking "Refresh" ? If not, please post a sample data to replicate your issue.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




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.