Alteryx Designer Desktop Discussions

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

Data Investigation

Simon1187
9 - Comet

Hi there, 

 

I am trying to achieve when Contract_id has two or more product_id then for getting total it considers Total price, if not it considers paid . Could you please help me with that? 

Thanks, 

 

Sample Data is below: 

 

Simon1187_0-1631847421359.png

 

2 REPLIES 2
binay2448
11 - Bolide

Find my solution for this problem..

AngelosPachis
16 - Nebula

Hi @Simon1187 ,

 

Here's how you can do it. First you can use a summarise tool to count the number of products per contract and then use a filter tool to split your records to those that have only one or two or more.

 

Then you can configure your summarize tools to use the appropriate fields and join your data back together

 

AngelosPachis_0-1631858664129.png

 

Hope that helps,

Angelos

Labels
Top Solution Authors