Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
micheledenardi
Specialist II
Specialist II

Calculated total in group header

Dear all,

i have a pixel perfect report structured as below, with some nested levels.

In the lower one i'm trying to create some total in the group header. Number 1, 2, 3 are simply a sum() of the details but the 4th total must be like: total 1 / total 2

I've tried to create a calculated field but it's returning strange values... how to achieve this?

Thanks

2023-03-14 13_11_50-mRemoteNG - confCons.xml - NPrinting.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Labels (1)
1 Solution

Accepted Solutions
micheledenardi
Specialist II
Specialist II
Author

i found the problem... i was summarize twice... one time in the calculated expression and another time in the group. So i keep only the sum() in the expression and now the result is correct!

2023-03-15 09_20_19-Clipboard.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
Ruggero_Piccoli
Support
Support

Hi,

I did a test on a single level and the total values are correct in both the group header and footer.

Ruggero_Piccoli_0-1678800149030.png

Check that you set the correct summary function the Group as summary running.

I did a test with nested levels and also in that case the totals are correct on both the group header and footer. 

Be sure you added the group header from the correct level.

Best Regards,

Ruggero

 

 

Hi,

 

 



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
micheledenardi
Specialist II
Specialist II
Author

"standartd" sum works as expected.

The problem i have is in a calculated total where i have to pick the first total (sum(qty, which correspond to the total q.ty of the details) and divide with the second total (sum(ship to)).

So i have created a calculated field like below and put into the header but is not returning the correct value...

What am i doing wrong?

i already tried to sum( qty) / sum (ship to) but is not working...

2023-03-15 08_45_05-Clipboard.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
micheledenardi
Specialist II
Specialist II
Author

i found the problem... i was summarize twice... one time in the calculated expression and another time in the group. So i keep only the sum() in the expression and now the result is correct!

2023-03-15 09_20_19-Clipboard.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Ruggero_Piccoli
Support
Support

I was writing you the same.

Thanks for sharing the solution.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.