Home

Creating a query or function that concatenates row text and adds new columns by comparing a field

%3CLINGO-SUB%20id%3D%22lingo-sub-253130%22%20slang%3D%22en-US%22%3ECreating%20a%20query%20or%20function%20that%20concatenates%20row%20text%20and%20adds%20new%20columns%20by%20comparing%20a%20field%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-253130%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20probably%20a%20simple%20thing%20to%20do%2C%20but%20I'm%20all%20thumbs.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20attached%20sample%20file%2C%20order%20details%20are%20either%20one%20or%26nbsp%3Bmultiple%20rows%20long.%26nbsp%3B%20%26nbsp%3BIf%20the%20SKU%2FItem%20numbers%20match%20for%20a%20given%20set%20of%20rows%2C%20I%20need%20to%20group%20them%20together%26nbsp%3Band%20transform%20those%20details%20into%20a%20single%20line.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20sample%20file%20contains%20the%20%22raw%20data%22%20in%26nbsp%3Bthe%20left-hand%20table%20and%20a%20mock-up%20table%20on%20the%20right%20that%20shows%20what%26nbsp%3Bneeds%20to%20be%20generated%20by%20the%20query%20(ignore%20the%20Qty%20ordered%20column%2C%20that%20will%20come%20from%20another%20join.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%20on%20how%20to%20transmogrify%20these%20rows%3F%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMarta%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%20on%20how%20to%20do%20this%3F%26nbsp%3B%20Thanks!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-253130%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-253246%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20query%20or%20function%20that%20concatenates%20row%20text%20and%20adds%20new%20columns%20by%20comparing%20a%20fie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-253246%22%20slang%3D%22en-US%22%3E%3CP%3EMs.%20Acree%3C%2FP%3E%3CP%3EI%20made%20a%20%22workaround%22%20as%20per%20attached%2C%3C%2FP%3E%3CP%3Ehope%20you%20can%20work%20something%20out%20of%20it.%3C%2FP%3E%3CP%3Ethanks..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-253145%22%20slang%3D%22en-US%22%3ERe%3A%20Creating%20a%20query%20or%20function%20that%20concatenates%20row%20text%20and%20adds%20new%20columns%20by%20comparing%20a%20fie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-253145%22%20slang%3D%22en-US%22%3E%3CP%3EMs%20Acree%3C%2FP%3E%3CP%3Epls%20see%20attached%20file%3C%2FP%3E%3CP%3Esorry%20I%20can%20not%20give%20you%20full%20solution%20-%20but%20somebody%20here%20at%20the%20forum%20maybe%20can.%3C%2FP%3E%3CP%3Ehope%20you%20can%20make%20something%20out%20of%20it%3C%2FP%3E%3CP%3Egood%20luck%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Marta Acree
Occasional Visitor

This is probably a simple thing to do, but I'm all thumbs.   

 

In the attached sample file, order details are either one or multiple rows long.   If the SKU/Item numbers match for a given set of rows, I need to group them together and transform those details into a single line.   

 

the sample file contains the "raw data" in the left-hand table and a mock-up table on the right that shows what needs to be generated by the query (ignore the Qty ordered column, that will come from another join.)

 

Any thoughts on how to transmogrify these rows?   

 

Thanks!,

 

Marta

 

Any thoughts on how to do this?  Thanks! 

2 Replies

Ms Acree

pls see attached file

sorry I can not give you full solution - but somebody here at the forum maybe can.

hope you can make something out of it

good luck

Ms. Acree

I made a "workaround" as per attached,

hope you can work something out of it.

thanks..

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies