Hoping someone could help me with this.
I have a table containing Profit for 3 different businesses (first 3 columnns). For each Business, I want to identify the key countries contributing to Business Profit. As Profit can be a gain or loss, Countries contributing large losses should also be included.
So far, I created 4th to 6th columns:
- 4th Column - Sub Total of Profit for each Business
- 5th Column - Country Profit divide by Total Profit Per Business -e.g. $250K / $415K for first row.
- 6th Column - Cumulative % of 5th column (grouping based on each Business)
The criteria to identify major driver is to include the rows up to the point cumulative % is greater than 90% but it also has to be less than 130% (e.g. for Business #4, if I simply use > 90%, i would only identify France but omit Belgium and UK which is not the objective). Once I meet the criteria, I want to exclude all rows which are deemed to be minor contributors.
In the 7th column, I have manually identified the rows which I want Alteryx to be able to filter for. If someone could help, that would be appreciated.
Thanks
Beelix
| Business | Country | Profit | Total Profit Per Business | Country Profit to Total Profit Per Business (%) | Cumulative Profit to sub-Total (Per Business) | |
| Business #1 | United Kingdom | 250,000 | 415,000 | 60% | 60% | Include |
| Business #1 | Australia | 100,000 | 415,000 | 24% | 84% | Include |
| Business #1 | France | 60,000 | 415,000 | 14% | 99% | Include |
| Business #1 | China | 30,000 | 415,000 | 7% | 106% | |
| Business #1 | Belgium | -25,000 | 415,000 | -6% | 100% | |
| Business #2 | United Kingdom | 175,000 | 215,500 | 81% | 81% | Include |
| Business #2 | Australia | -70,000 | 215,500 | -32% | 49% | Include |
| Business #2 | United States | 63750 | 215,500 | 30% | 78% | Include |
| Business #2 | China | 25,500 | 215,500 | 12% | 90% | Include |
| Business #2 | Belgium | 21,250 | 215,500 | 10% | 100% | |
| Business #3 | Australia | -60,000 | 22,000 | -273% | -273% | Include |
| Business #3 | France | 58,000 | 22,000 | 264% | -9% | Include |
| Business #3 | Belgium | 36,000 | 22,000 | 164% | 155% | Include |
| Business #3 | United Kingdom | -14,000 | 22,000 | -64% | 91% | Include |
| Business #3 | China | 2,000 | 22,000 | 9% | 100% | |
| Business #4 | France | 100,000 | 26,000 | 385% | 385% | Include |
| Business #4 | Belgium | -95,000 | 26,000 | -365% | 19% | Include |
| Business #4 | United Kingdom | 20,000 | 26,000 | 77% | 96% | Include |
| Business #4 | China | 1,000 | 26,000 | 4% | 100% | |