Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjana
Creator
Creator

Sum of sales of all products

 

Hi,

I wrote this expression :

sum(aggr(sum( {< Product={"=Sum(PrevTL)=0"},Year={"$(=Year(Max(Date)))"},Month={"<=$(=Num(Month(Max(Date))))"},flag={'Onco'}>} TL_Value),Product,[Ret/Hosp]))

 

But it gives TLValue i.e. sales only for one product. There are 3 such products. Any help is appreciated.

Thanks

Niranjana

2 Replies
PrashantSangle

what is your dimension?

 

 

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
niranjana
Creator
Creator
Author

Dimension is Company.

And  I must show sum of sales of all products falling under that company whose prev year sales is zero.

But Product is not the dimension.

Thanks,

Niranjana