Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total for rows (Date range)

I need help how to in QlikView for pivot, add column with (total) sum for rows, it is necessary for the dates from 01/01/2016 to 01/31/2016?
See pics

5 Replies
vikasmahajan

While loading script create field with rowno()  as cnt  , then use count(cnt) in pivot.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

thanks for the answer, I do not understand on what you mean, can you give me an example of code to write what you think?

Not applicable
Author

count(cnt).jpg
Use in pivot
rowno.jpg
Load in script

error in calculated dimension.jpg
Result
Please help?!

Anonymous
Not applicable
Author

Hi Zeljko,

Use dimensionality and secondarydimensionality() functions.

Something like this:

If(Dimensionality() = 1 and SecondaryDimensionality()=0,Cound(Distinct Date),YourExpression)

Regards!!!

Not applicable
Author

Thanks a lot, helped me all the answers, I succeed to find a solution with this code:
=aggr
(NODISTINCT num(sum({<mesec={[1]}>}masa)),sifra)