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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mb0307
Responsive Resident
Responsive Resident

Merge multiple files into single based on criteria

Hi all,

 

EXCEL DATA ATTACHED 

 

I have miltiple INPUT TAB in this format:

mb0307_0-1663859431854.png

 

 

A product CHANGE TAB, shows when a NEW LINE will be created in OUTPUT, based DATE RANGE on change in LOCATION or PRODUCT CODE:

mb0307_1-1663859656367.png

 

 

So OUTPUT TABLE in Power BI will look like this:

mb0307_2-1663859744042.png

 

The Output Table, highlighted in Red shows how the new lines will be created using CHANGE TAB.

 

Please any help with this will be highly appreciated.

 

Thanks

 

 

3 REPLIES 3
mb0307
Responsive Resident
Responsive Resident

Can anyone help pelase?

Anonymous
Not applicable

Hi @mb0307 ,

Do you want to convert the Output table to Change table in Power BI? If yes, you can merge these columns named with date in Power Query Editor first.

yingyinr_0-1663924477857.png

Then create some calculated columns to get the field [Location],[Product Code Swap],[Transition From Week] and [Transition To Week]. I just create a sample pbix file(See the attachment) and achieve part of above steps. I need you provide more details on how to get the previous fields. What's their calculation logic? Thank you.

Best Regards

mb0307
Responsive Resident
Responsive Resident

@Anonymous No do not want to convert Output to Change. 

 

OUTPUT will be generated as a table.  So Need to build OUTPUT as shown.

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.