Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Min and Max Values - Row

JDong
8 - Asteroid

Hi Team,

 

I have quarterwise data as shown below

 

Gallop_0-1603436080385.png

 

I have transformed the data is the below format using a flow

 

Office A1Q00
Office A2Q0.250.24
Office A3Q0.440.52
Office A4Q0.851.01
Office A5Q1.741.09
Office A6Q2.151.47
Office B1Q0.410.08
Office B2Q0.680.25
Office B3Q0.781.14
Office B4Q1.282.06
Office B5Q1.993.79
Office B6Q1.012.22
Office C1Q00.1
Office C2Q00.15
Office C3Q00.21
Office C4Q00.37
Office C5Q00.79
Office C6Q00.37
Office D1Q00.39
Office D2Q01.03
Office D3Q01.15
Office D4Q01.35
Office D5Q01.76
Office D6Q01.14

 

 

Now I need to dervied 2 columns for the Min and Max values. The values would be for the overall data and not for specific office ? Also I have another data column that needs to be shown in the final output

 

OfficeQtrMinMaxQuantity
Office A1Q000.71
Office A2Q0.250.240
Office A3Q0.440.524.78
Office A4Q0.851.010.13
Office A5Q1.741.094.55
Office A6Q2.151.470.09
Office B1Q0.410.080
Office B2Q0.680.250.84
Office B3Q0.781.140
Office B4Q1.282.060
Office B5Q1.993.790
Office B6Q1.012.2212.88
Office C1Q00.10.51
Office C2Q00.155.25
Office C3Q00.217.12
Office C4Q00.370.09
Office C5Q00.790
Office C6Q00.371.08
Office D1Q00.390.42
Office D2Q01.030.07
Office D3Q01.150
Office D4Q01.355.59
Office D5Q01.760.7
Office D6Q01.140

 

Howcan I achieve this ? Since right now on using summarize I see the values are same for every row. Is the approach to be more like a level of detail.

 

Please advise

 

Thanks

 

35 REPLIES 35
grazitti_sapna
17 - Castor

Hi @atcodedog05 , thanks for pointing out I did not consider the case you described, but have modified my workflow, try your test case in this workflow. Also your way to replace the zeroes to null is a smart move.

 

grazitti_sapna_0-1603363101922.png

 

@JDong - This is an alternate method to approach in case you have dynamic columns.

 

Thanks.

Sapna Gupta
grazitti_sapna
17 - Castor

@JDong , you are right if you try to join the median column with min max it will definitely give you same values for min max and different values for median. Is there a way to find on what basis are you calculating this median?

Thanks.

Sapna Gupta
atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Bit confused need more clarity is this what you are trying to achieve.

atcodedog05_0-1603364424957.png

 

It has medina which considers 0's and median without 0's as well

 

Workflow:

atcodedog05_1-1603364481944.png

Hope this helps 🙂

JDong
8 - Asteroid

Thanks.

 

Quantiy is just another Data column (Stored as string) and not that I wish to summerize.

 

I just want to display the column in the final result.

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Can you check the above solution once.

 

And If its ok can you provide your actually like 10 rows would and your workflow. We can help you much effectively 🙂

JDong
8 - Asteroid

@atcodedog05 @grazitti_sapna @Emil_Kos 

 

I have updated all my posts so it is more clear to read and understand. Do let me know if there are any questions.

 

Gallop_0-1603438577201.png

 

Current output is as shown above where again the grouping is happening. The last field is grouped by in summerize step but I just want to display the value.

 

Thanks

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

If you are using groupby in summarize it applies on all irrespective of order. Hence you need 2 summarize tool one for aggregates with groupby and another for without groupby. Later you can use join tool or append tool.

 

It is not possible to configure a summarize tool to take aggregation on groupby and some not.

 

In the above solution you can use groupby in top summarize tool which is aggregating median.

 

I currently away from system. I will work on workflow once back. Please provide the expected output so that we can target on achieving it.

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

It is also unclear for me what is the expected result. 

If you could give us some more details that would be awesome!

JDong
8 - Asteroid

Gallop_0-1603443276421.png

 

 @Emil_Kos 

 

Whatever @atcodedog05  understands is the same result I wish to achieve. As in the image above I am now getting the Max , Min values after removing the quantity field from group by. I also added another summerize for the quantity field but if I join based on 3 keys I get too many records. Append also similar.

 

How can I fix this to get correct result.

 

Please note that when I do a join on record position the records seems right..but due to null values in dataset the values are not exactly on the same rows.

 

Thanks

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,


can you attach your workflow? 

Labels