Countif function
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello All,
I am trying to do a simple countif in Alteryx but it looks like it's not straightforward.
I just wanted to count the currencies per Account unit. Please see below sample. Thanks for the help.
Source:
Account unit | Currency |
UNIT 113 | EUR |
UNIT 113 | EUR |
UNIT 113 | EUR |
UNIT 113 | USD |
UNIT 113 | USD |
UNIT 112 | EUR |
UNIT 112 | EUR |
UNIT 112 | USD |
UNIT 112 | USD |
UNIT 112 | USD |
Output:
Row Labels | A Account | B Account | Grand Total | Item Count |
EUR | -165522.27 | 192850.67 | 27328.4 | |
unit 113 | 31652.24 | 31652.24 | 3 | |
unit 112 | -65.64 | -0.01 | -65.65 | 2 |
USD | -165522.27 | 192850.67 | 27328.4 | |
unit 113 | 31652.24 | 31652.24 | 2 | |
unit 112 | -65.64 | -0.01 | -65.65 | 3 |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@geraldo sorry, forgot to mention I also need to consider the A account and B account criteria, I need the total count of currency per account unti existing in both A and B accounts. That's where I am having issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can do that all in the summarize tool. group by both fields. count of either fields. sum of your sum columns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@apathetichell do you have a sample workflow? source below. What I am getting is the total per GL account, when I tried to sum it is not getting the correct count.
Account unit | Currency | GL Account |
UNIT 113 | EUR | A Account |
UNIT 113 | EUR | B Account |
UNIT 113 | EUR | B Account |
UNIT 113 | USD | A Account |
UNIT 113 | USD | B Account |
UNIT 112 | EUR | A Account |
UNIT 112 | EUR | B Account |
UNIT 112 | USD | A Account |
UNIT 112 | USD | B Account |
UNIT 112 | USD | A Account |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
post some sample data -and I can mock something up. - this sounds like you need to group by an additional field. - you will need to do two different breakdowns and some kind of join. Having two different sub total types (by currency and by account - at least in the format you have) would require some pivots/joining.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@apathetichell I attached a sample data. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@jdminton I am trying this now, could you pls send me the input you used, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Jenina I used the one you provided ;) I did start the data on line 2 though in the configuration.
