Free Trial

Alteryx Designer Desktop Discussions

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

Grouping data in different tables

MadhuraBuchake
7 - Meteor

 

Hello All,

 

I am trying to group the data by CARS category (sample data). Within CARs category I am trying to group 'issues' by orderID. This I tried with Summarize tool. However I have different issues for every OrderID and if I click on any OrderID i should have a table that displays the related issues. Is this possible?

I have CARs, Vehicle and Bike as the Categories and 8 OrderIDs. I have grouped the Issues per Order ID in table2 and I am looking for every issue ID per OrderID in a different table (I should be able to click on OrderId and then get the table3. OrderID 3 has 3 issues hence the count is 3 and description of every issue.

Table 1

TypeOrder IDIssue IDDescription
CARS112345engine broke down
CARS22345loss of oil
CARS33456noisy engine
CARS34566engine leak
CARS37864engine tear down
CARS44523window broken
CARS43241window seal
CARS57457door broken
CARS63454door hinges loose
Vehicle73564tear dowb
Bike97897Broke down
    

 

Table 2

TypeOrderID# of Issues

CARS

11
CARS21
CARS33
CARS42
CARS51
CARS61

 

Table 3

OrderIDIssue IDDescription
33456noisy engine
34566engine leak
37864engine tear down
7 REPLIES 7
gawa
16 - Nebula
16 - Nebula

Hi @MadhuraBuchake 

 

I'm not sure this is the exact solution to your question, but if you want to output records in multiple sheet in excel file, then refer to attached workflow.

Depending on Type and Order ID, create file path by Formula tool, then it will split records into separate sheets.

image.png

MadhuraBuchake
7 - Meteor

Thank you for your reply. I am already splitting the data by categories into different sheets so I cant do that for OrderID. 

binuacs
21 - Polaris

@MadhuraBuchake Can you provide the expected output result for a better understanding of your use case?

MadhuraBuchake
7 - Meteor

Hello @binuacs Table 1 is the input and "table 2 and table 3" are the expected output. 

 

If this output doesn't work out then is it possible to have a table like below?

TypeOrderIDCount of IssuesIssue IDIssue description
CARS1112345engine broke down
CARS212345loss of oil
CARS333456noisy engine
CARS334566engine leak
CARS337864engine tear down
CARS424523window broken
CARS423241window seal
CARS517457door broken
CARS613454door hinges loose
urvi_30
5 - Atom

Hi @MadhuraBuchake 

 

you can first use a summarize tool to get the count of issues after grouping by type and orderid, then you can join this back to your table using Type and Order Id to add the issue id and description on the side. see below! Hope this helps!

Capture.PNG

 

binuacs
21 - Polaris

@MadhuraBuchake If you join the first two data sets based on the type and order id you will be getting the expected result. Is that something you are looking for?

 

image.png

MadhuraBuchake
7 - Meteor

Thank you @urvi_30 and @binuacs for your solution. This worked!! 

Labels
Top Solution Authors