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.

Sub and Grand Total

JDong
8 - Asteroid

Hi All,

 

Please refer to the attached flow where the subtotals and grandtotals are calculated for every 'Dept'.

 

Now I need to enhance the flow to accomodate filtering based on the column 'Sub-Dept'.

 

Eventually all columns in the dataset should be filterable and grandtotal should always be shown based on the selection. The subtotals work as expected.

 

Do let me know on any questions.

 

Gallop_0-1612187110211.png

 

Actually grand totals are in the Null 'Sub-Dept'

 

Thanks

12 REPLIES 12
echuong1
Alteryx Alumni (Retired)

The issue is because you don't have any sort of indicator stating that that particular total line is associated with those records. You'd need another column that specified the value MKT, or add the value to the column you're filtering on, and filter on that.

 

Looking at your workflow and the way you're calculating the totals, it's not very dynamic. It works if you need the total by department, but what if you wanted value by region (US vs CAN)? I suggest doing the filter first, and then calculating the totals.

 

echuong1_2-1612446640262.pngechuong1_3-1612446657094.png

 

By Region:

echuong1_0-1612446745752.png

 

 

JDong
8 - Asteroid

@echuong1 

 

Thanks ! This helps but in my use case I will be applying the filter on a vizualization tool.

 

How can I handle this filtering on the reporting layer ? Any thoughts ?

JDong
8 - Asteroid

@echuong1 

 

Seems a dead end ? Any tips please ?

 

Thanks

Labels
Top Solution Authors