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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
dafnis14
Specialist
Specialist

TOTAL and * in expression

Hi,

The following expression doesn't work for me:

sum( Qty*Carts_Per_Item) /

sum(TOTAL <Style> Qty*Carts_Per_Item)

Any idea why?

Thanks!

16 Replies
sunny_talwar

I am getting it with no problem

Capture.PNG

dafnis14
Specialist
Specialist
Author

Hi Sunny,

I have posted the model..

Maybe I miss something silly..

Thanks for your kind help!

dafnis14
Specialist
Specialist
Author

Please look at my model. It has dim B too..

sunny_talwar

You have used B as dimension, do you really need it?

dafnis14
Specialist
Specialist
Author

Unfortunately, yes..

It has to look like that:

   

ABSUM
ClBold 11466033%
ClRegular 13736233%
FlSmooth 1022219%
FlSummer1241819%
Fl Mint813819%
MeSmooth632248%
MeBold1735248%
MeRegular5293948%
sunny_talwar

Try this

SUM(TOTAL <A> SUM)/

SUM(TOTAL SUM)

Capture.PNG

dafnis14
Specialist
Specialist
Author

well, your magic touch 🙂

Thanks!

I still have to check now with multiplying by a field from another table.. so

will mark as helpful for the meantime 🙂