I tried to do a filter to only display 2 lines with totals but the total lines are not showing correctly. Total should be zero. It is showing total of lines even if those lines are hidden. Can this be fixed? Please see screenshot below :
And additionally to @ArunManickam suggestion, might also be worth having it as a separate module, that way the source information isn't impacted with any unintended consequences mitigated.
What you can also do is on the filter module have a line item that brings back the name of the filter and can then use either SUM or LOOKUP in the output module depending on whether or not you want to see the granular detail.