Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Conditional data manipulation using alteryx

$
0
0

Hey Guys,

 

I have a data set where i need to do manipulation based on various columns. I i need to get weighted average of Access_score over lives if sum lives!=0 and weighted average over TRx of Access_score if sum lives=0 and 'Trx' as unique of each value grouped by IMS_ID & IMS_PLAN_ID

 

Input data

 

IMS_IDIMS_PLAN_IDPLAN_IDIMS STATEPLAN STATEACCESS_SCORELivesTrx
2222341234CACA203
222234678CACA403
2222351234CACA210004
222235678CACA42004
3332341234CACA205
333234678CACA405
3332351234CACA210006
333235678CACA42006

 

Output data

 

IMS_IDIMS_PLAN_IDACCESS_SCORE
2222343
2222352.333
3332343
3332352.333

 

I am thinking of using mutifield formula but not sure how to manipulate multiple columns grouping by multiple columns

 

Thanks in advance


Viewing all articles
Browse latest Browse all 4999

Trending Articles