Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
shamiul_islam
Contributor III
Contributor III

not changing value in text box after choose any date field

Hi Guys, I'm working on a sales report on qlikview dashboard. I calculate average sales value upto previous month. it's working. But I want to fixed the value in the text box but that's not working. When I choose date or month from the field the average value is changed but I don't want any effect for the average value in the text box. I use a set analysis in the equation. Here is the equation:

=num((Sum({<Month-=,Mday-=,Month-={"$(=vCurrentMonth)"},Year={"$(=vCurrentYear)"}>}Gross_Value)/
(count(distinct {<Month-=,Mday-=>} Month)-1))/1000000,'###0.0')

where, vCurrentMonth=2019

Please help me ASAP, Thanks.

1 Solution

Accepted Solutions
treysmithdev
Partner Ambassador
Partner Ambassador

This should work if vCurrentMonth and vCurrentYear are static values. 

=num((Sum({<Date=,Mday=,Month={"<$(vCurrentMonth)"},Year={"$(vCurrentYear)"}>}Gross_Value)/
(count(distinct {<Month=,Mday=,Date=>} Month)-1))/1000000,'###0.0')

 

If vCurrentMonth and vCurrentYear are expressions then you will need to adjust them to so they ignore selections.

Blog: WhereClause   Twitter: @treysmithdev

View solution in original post

2 Replies
treysmithdev
Partner Ambassador
Partner Ambassador

This should work if vCurrentMonth and vCurrentYear are static values. 

=num((Sum({<Date=,Mday=,Month={"<$(vCurrentMonth)"},Year={"$(vCurrentYear)"}>}Gross_Value)/
(count(distinct {<Month=,Mday=,Date=>} Month)-1))/1000000,'###0.0')

 

If vCurrentMonth and vCurrentYear are expressions then you will need to adjust them to so they ignore selections.

Blog: WhereClause   Twitter: @treysmithdev
shamiul_islam
Contributor III
Contributor III
Author

Thanks that's working