Free Trial

Alteryx Designer Desktop Discussions

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

Consecutive month amount not blank for three consecutive months or more

Scheruku
8 - Asteroid

Hello All,

 

We are trying to find out if there are any amounts(not zeroes) values appearing consecutively for three or more months(Jan-Sep)..

 

I have tried various ways but couldn't generate the output. Below the example:

 

Service_PortionJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptember
5000218.693.860.79110021.9400
50004117.77055.665.67060.92051.90
5000545.87054.29039.58021.2700
500062.7204.825.6722.44016.092.262.9
5000700004.93.43.63.70

 

 

Service_PortionJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptember
5000218.693.860.79110021.9400
500062.7204.825.6722.44016.092.262.9
5000700004.93.43.63.70

 

Please help.

 

Best Regards,

Scheruku.

5 REPLIES 5
danrh
13 - Pulsar

I'd suggest using a Cross Tab and then a Multi-Row Formula:

image.png

Once you have all your months in a single column do a running count of months with >0, then filter down to just the records that hit 3 or more.  Join it back to your data to get the original records and you should be good to go.

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Scheruku,

 

Here's my solution:  Transpose & count rows where non-zero.  Find your keys and filter (using a join).

 

Capture.png

 

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
MarqueeCrew
20 - Arcturus
20 - Arcturus

Just like @danrh!

 

We must be right :)

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Scheruku
8 - Asteroid

Amazing! Thanks much for your help.

Scheruku
8 - Asteroid

Thank you so much for the help!

Labels
Top Solution Authors