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
atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

I think you are using Grouby then Min and Max. Dont use groupby.

 

And if you can provide expected output and exact logic we can build a workflow accordingly.

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

Please find the workflow attached.

 

Emil_Kos_0-1603356690770.png

And the output:

 

Emil_Kos_1-1603356702121.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

You might have to do something like this. Remove grouby

Capture.PNG

Workflow:

 

atcodedog05_0-1603357339280.png

 

Hope this helps 🙂 If it doesnt solve please provide more clarity so we can help better.


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

JDong
8 - Asteroid

Thanks. Is there a way to consider the Min value by not considering 0 ?

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

yes, there is 😀

 

Emil_Kos_0-1603357607167.png

 

 

and the output:

 

Emil_Kos_1-1603357616273.png

 

 

Please mark this as a solution if this was helpful for you!

atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

You can filter 0's before summarizing. There no other straight forward way.

 

Workflow:

atcodedog05_0-1603357802740.png

 

Then for each column you need to handle separately 

 

Hope this helps 🙂

grazitti_sapna
17 - Castor

Hi @JDong , give this a try.

 

grazitti_sapna_0-1603358124982.png

 

Thanks.

Sapna Gupta
atcodedog05
22 - Nova
22 - Nova

Hi @JDong 

 

Another Neat trick would be to convert all 0's to Null()

atcodedog05_0-1603359385798.png

Nulls are not considered in aggregates.

 

And by using Multi-Field formula tool you can replace 0's to Null over multiple column. Later on this reference Null can be changed back to 0's too.

 

Output:

atcodedog05_0-1603359637783.png

 

 

Hope this helps 🙂

 

Hi @grazitti_sapna using Field1!=0 and Field2!=0 will cause data issue. If in a row Field1 is 0 and Field2 is overall max. Upon filter this data will be lost.

JDong
8 - Asteroid

How can I add the quantity column this along with the Min Max columns since when I add this as group by in summerize tool the values of Min and Max becomes same for all entries.

 

So this will be a new field apart from Min and Max fields and called as Quantity

Labels