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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.