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: 
Anonymous
Not applicable

Alternative to GetPossibleCount()

hello,

I have a little problem on a formula for calculating the value of the average quantity delivered my formula : sum(CE11000.Sales_Quantity) / GetPossibleCount (CE11000.Period)

This works very well when my product was delivered during the 6 months selected but here my article is delivery only in March so in the formula the GetPossibleCount = 1 and I wish it all the time equal to my selection here I want GetPossibleCount = 6.

Do you have any idea?

Thank you in advance!

QVIEW.png

3 Replies
Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

I think this expression can help you :

sum(CE11000.Sales_Quantity) / Count({<CE11000.Period=>} DISTINCT CE11000.Period)


Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
Not applicable
Author

Did you try the below

GetPossibleCount(CE11000.Period)+GetAlternativeCount(CE11000.Period)

Anonymous
Not applicable
Author

I finally found a solution :

GetSelectedCount(CE11000.Period,1)

Thank you for your answers