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

Set help for YTD by month

Hi,

I want to store sum of the selected months YTD value into variable and take the avg.

for example,

if i select feb,mar,

ytd for feb is 100

Ytd for mar is 120

then i need to show the value(variable) is (100+120)/2(no.of selected months)=>220/2=110

the problem i am facing is i dont know how to take the YTD for the selected months.

I can take the YTD for the max month. using <=max(month) in set.

if they select more than one month then i dont know how to do.

could anyone help me.

thanks in advance.

4 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     You mean like this?

     variable value is  =Sum(value)/GetSelectedCount(Month)

Celambarasan

Anonymous
Not applicable
Author

Hi

Your varialbe name = sum(value) / count(monthfieldname)

Regards

Ashok

Not applicable
Author

Hi

thanks for ur reply.

thats is not i want.

I want to calculate the YTD. not sum(value)

thanks and regards,

Gopinathan L

deepakk
Partner - Specialist III
Partner - Specialist III

hi gopi,

try this application.

Deepak