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: 
pcservicios
Contributor
Contributor

Total expression not working

Hi.

I've a little problem calculating the total of a straight table.

The expression is 

=sum(aggr(Estancias/Trabajadores,Departamento))

But the Total row is not as expected.

I upload a example in .qvw file

The expected total is 200/33 = 6.06

Thaks for your help

 

1 Solution

Accepted Solutions
Taoufiq_Zarra

@pcservicios  or you can change your measure like

Taoufiq_Zarra_0-1629202894308.png

attached qvw file

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

4 Replies
stevejoyce
Specialist II
Specialist II

I can't access your qvw, but your calculation would be first dividing Estancias/Trabajadores for each Departamento, and then summing your percents.  I can't tell if you actully need aggr, but im guessing you want to do something like...

=sum(aggr(sum(Estancias)/sum(Trabajadores),Departamento))

Taoufiq_Zarra

@pcservicios  or you can change your measure like

Taoufiq_Zarra_0-1629202894308.png

attached qvw file

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
pcservicios
Contributor
Contributor
Author

Thanks Taoufiq for your help!

pcservicios
Contributor
Contributor
Author

Thanks for your help, but this not work for me 😞