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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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?

v-yiruan-msft
Community Support
Community Support

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

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

@v-yiruan-msft 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.