We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Can someone help me with this Alteryx issue?

RobertHurtFEC
5 - Atom
Account DescriptionAsset NumberPrior PeriodCurrent Period
762400192620635.58 
7624001926206 35.58

 

This is happening with about 100k+ rows. The pattern varies. Some nulls, some rows don't have a current period, others don't have a prior period. Please help.

8 REPLIES 8
alexnajm
18 - Pollux
18 - Pollux

What is the end result you are looking for from this table?

RobertHurtFEC
5 - Atom

The Asset should only have one line: current period and prior period should be on the same line.

 

abacon
12 - Quasar

@RobertHurtFEC Can you post the workflow that generated this? It is hard to say why an output is being given without knowing what is happening.

 

Bacon

alexnajm
18 - Pollux
18 - Pollux

100% agree @abacon 😊

alexnajm
18 - Pollux
18 - Pollux

@RobertHurtFEC there are multiple ways to fix this, but best to make sure it fits with the broader context of your workflow

binuacs
21 - Polaris

@RobertHurtFEC Try the summarise tool, group by Account Description, Asset Number, then take the maximum value of prior period and current period

binuacs_0-1754673845856.png

 

apathetichell
20 - Arcturus

this looks like a cross tab... ie data source has:

Account DescriptionAsset NumberNameValue
7624001926206Prior Period35.38
7624001926206Current Period35.58

 

 

when you cross tab this you get what you have (with some minor regex swapping of characters).

 

summarize tool group by and max value is probably the easiest way to fix this.If (and only if) it's dynamic and more than a few columns -- -and you need something dynamic you could ---do something more complicated like tile tool - unique value for your two primary keys. cross tab on tile_sequence number as your column ---> value as your value (concat/sum/doesn't really matter what aggregation you use) ---> that should solve problem 1. next you have to fix your column names --- so go back to your tile tool and add a second cross tab ---> filter for tile_number --- not tile tile_sequence_number -  1 -> hook up a dynamic rename between the first datastream and hook the results of the second tile tool into the right dynamic rename anchor. use the change column names based upon right anchor option and map the column name in a to the tile_sequence value -> replace with name.

RobertHurtFEC
5 - Atom

Thanks everyone! I figured it out and forgot to circle back!

Labels
Top Solution Authors