Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Subtotal

Hello,

I have a table with sales by month and I want to show the subtotal about it. The issue is, I want to show the subtotal, only if more than 1 month be selected, do you guys know if it is possible?

Sincerely, Luiz Bisco

1 Solution

Accepted Solutions
hector_munoz
Specialist
Specialist

Hi Luiz,

Short time ago we had the same problem and we had to solve it using 2 distinct objtecs: one with subtotals and other without them. They show or hide based on the number of selected values in a field.

Hope you find another way.

Regards,

H

View solution in original post

3 Replies
hector_munoz
Specialist
Specialist

Hi Luiz,

Short time ago we had the same problem and we had to solve it using 2 distinct objtecs: one with subtotals and other without them. They show or hide based on the number of selected values in a field.

Hope you find another way.

Regards,

H

Not applicable
Author

Thank you, it works!

sunny_talwar

May be something like this in one object

If(GetSelectedCount(Month) > 1, Sum(Sales), Aggr(Sum(Sales), Month))

The above will only show a total when more than one Month is selected in the Month field