Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Merging lines into one

AJ-Fahmy
5 - Atom

Hello Experts,

 

I have this requirement that I'm kinda struggling in solving it. the business is looking to view its clients based on the business name, Invoice number, current year, current year Order #, Current year Amount, and Last year amount under the same line.

This is how the data is showing right now

 

Business NameInvoice#Order#Year of CloseDateAmount
ABC WH143254011115538/1/202015052
ABC WH14325409708068/20/201916724
HD632212111333/14/202073009
HD632214554433/21/201973009
Art Van820031012236/10/20203455
Art Van8200383343005/30/20197433
BBY91922484498/10/202025800
BBY9192211218/10/201924750

 

And this is how the business wants to show the data

 

Business NameInvoice#Order#Year of CloseDateAmountlast year Amount
ABC WH143254011115538/1/20201505216724
HD632212111333/14/20207300973009
Art Van820031012236/10/202034557433
BBY91922484498/10/20202580024750

 

Important note that if I filter the results by the date I will get this year and last year Amounts. So if I say I will filter the results by this quarter, I should get

 

Business NameInvoice#Order#Year of CloseDateAmountlast year Amount
ABC WH143254011115538/1/20201505216724
BBY91922484498/10/20202580024750

 

Thank you so much

4 REPLIES 4
vizAlter
12 - Quasar

Hi @AJ-Fahmy — Try this solution...

 

vizAlter_0-1601066139552.png

 

After adding "Select" tool:

vizAlter_0-1601066325735.png

 

ArtApa
Alteryx
Alteryx

Hi @AJ-Fahmy - Almost everything in Alteryx can be done in a couple of different ways:

 

ArtApa_0-1601163189525.png

 

ImadZidan
12 - Quasar

Hello @AJ-Fahmy ,

 

Besides the great solutions, her is another one.

 

Hope you find it insightful.

grazitti_sapna
17 - Castor

Hi @AJ-Fahmy , give this a try.

grazitti_sapna_0-1601275493984.png

 

Sapna Gupta
Labels