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
JDU
Helper I
Helper I

Attach query and replicate formulas

PBi experts, I need your help again.
I need to annex month by month the same database but to copy automatically the measures or columns that I created in the first month.
When I use the attach query option it adds the rows but it does not copy the calculated measures or columns.
Is it possible to do this so I don't have to do the same formulas every month?

 

Thank you very much again!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @JDU,

You can do merge operation on 'query editor' side, then you can only load the merge table to data model side as source data table. (cancel the loading of other queries)

Notice: create a table with connection strings and add a custom column to invoke each connection with connectors, then you can extract and merge new column data to a merge table.

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

HI @JDU,

Maybe you can try to parameterize your connection string and save your report as a template. Then you open the template to change its connection string to generate a new report with old report structures and designs.

Deep Dive into Query Parameters and Power BI Templates 

Regards,

Xiaoxin Sheng

Thank you for your response.
Indeed the template serves to analyze different files separately, the problem is that I need to combine them as having a single report.

Anonymous
Not applicable

HI @JDU,

You can do merge operation on 'query editor' side, then you can only load the merge table to data model side as source data table. (cancel the loading of other queries)

Notice: create a table with connection strings and add a custom column to invoke each connection with connectors, then you can extract and merge new column data to a merge table.

Regards,

Xiaoxin Sheng

Could you send an example? ...I tried to do it, but it didn't work out
Anonymous
Not applicable

Hi @JDU,

You can check the following sample formula and steps.

Sample table:

10.png

New query table based on sample table records:

let
    Source = Table.Combine(Table.AddColumn(Sample,"Data",each Sql.Database([Server],[Database]))[Data])
in
    Source

Notice: right-click on the first sample table to turn off the enable load option.

Regards,

Xiaoxin Sheng

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