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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors