This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
2022.1.1.30569 Patch Release Update
The 2022.1.1.30569 Patch/Minor release has been removed from the Download Portal due to a missing signature in some of the included files. This causes the files to not be recognized as valid files provided by Alteryx and might trigger warning messages by some 3rd party programs.
If you installed the 2022.1.1.30569 release, we recommend that you reinstall the patch.
This week, we are looking at a few accounts. In this set of data, there are 4 accounts. The first row of every account represents the number of credits/debits against the account, and the second row represents the actual credits and debits paid against the account in the order they were paid. Your task is to find the credits and debits where the sum of debits and credits BEFORE any transaction is equal to the sum of debits and credits AFTER it. Please count the transactions from 0 to match the answer. Below is a picture that illustrates the logic of which transactions should be captured. The picture represents the second account.
Opted for a solution that calculates running total from Left-to-Right and then re-sorts to calculate from Right-to-Left, and then filtered for only those options that had the same total in both directions.
I like the way that you eliminated the noise that @JoeM inserted into the problem. I also learned from your use of the parse that instead of \s you could literally use a space character. I don't like it, but it is possible.
Good luck in the Grand Prix!
Alteryx ACE & Top Community Contributor
Chaos reigns within. Repent, reflect and restart. Order shall return. Please Subscribe to my youTube channel.
I periodically go rogue on the shortcuts with syntax, though probably not as intentionally as you might think haha... In this case, I didn't even think to use \s. It's been that kind of Monday. You get a gold star for catching onto that though! :)