Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of all dimensions

Hi All,

I need some of all dimension to calculate share. it calulated properly but only showing for 2 or less rows. file is attached.

4 Replies
Gysbert_Wassenaar

See attached qvw. Are that the kind of shares you're looking for?


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for reply..

but if you notice qlikview has value21.4% for 1 and 2 month which not correct.

(sum of all partner in relevant month)

Not applicable
Author

Hi!

Maybe you can use:

if(sum(TotalCost)/aggr(sum({<Partner=>}TotalCost),Month),aggr(sum({<Partner=>}TotalCost),Month),0)

or

if(sum(TotalCost)/aggr(sum({<Partner=>}TotalCost),Month),aggr(sum({<Partner=>}TotalCost),Month),sum(TotalCost))

There is no division by 0.

By

Rebeca

Not applicable
Author

Hi Rebeca,

thanks for help.. sum exist for all actualy.

Regards

Altaf