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

Need help

ashaik1
6 - Meteoroid

Hello - I have the below data and i would like to bring in an additional column next to 'Nature'  based on the account and its nature.

Example: Asset and Liability is Balance Sheet(B/S) and Revenue and Expense is Income Statement (IS). Journal entry 1 has both Asset and Liability so in my new column it should show me B/S only as a comment. 

 

Journal entry 3 has both Asset and Revenue so in my column it should give me B/S and I/S.

 

Kindly help

 

Journal EntryAccountNature
1100000Asset
1200000Liability
2400000Revenue
2500000Expense
2700000Expense
3100000Asset
3400000Revenue
2 REPLIES 2
aatalai
15 - Aurora

Ok I would start with using the formula tool and say if [Nature]="asset" or [Nature]="Liability" then "B/S" else "I/S" endif

 

Then use the summarise tool group by journal entry and count distinct of the new the column generated.

 

Then join this with the output of the summarisation tool with the output from the formula tool joining on journal entry. 

 

Then add an other formual tool with If distinct count =1 then [column generated earlier] +"only" else "Both B/S and I/S"

 

@ashaik1 hope that helps

Qiu
21 - Polaris
21 - Polaris

@ashaik1 
If we are going to write a more than 2 lay of conditional statement, I always prefer a mapping file.

0301-ashaik1.png

Labels
Top Solution Authors