Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need help on qlikview expression

Hi All, while writing expression Sum( {$ <[A Date]={">=MonthStart(Max([A Date]) <='29/11/2016' "} >}  $($(='eAmt' )) )  . I am getting 2 issues,

1) Above expression is not getting resolved. however both  Sum( {$ <[A Date]={">=MonthStart(Max([A Date]) <='29/11/2016' "} >}  XXXXX) and  $($(='eAmt' )) is getting resolved separately

2)  Above mentioned A Date is a select from Multi box properties. could you suggest me how I can replace above hardcoded value '29/11/2016' with List box selection A Date.

Thanks in advance !

8 Replies
vinieme12
Champion III
Champion III

Sum( {$ <[A Date]={">=$(=date (MonthStart(Max([A Date]) ),'dd/mm/yyyy'))<='29/11/2016' "} >}  $($(='eAmt' )) )

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Hey,

you can use getfileddelection () function for 2nd problem.

Thanks,

Anil_Babu_Samineni

What was the eAmt here. Does this simple field name? I mena have you created Variable name for Field / What?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
HirisH_V7
Master
Master

Hi,

Check this,

1.

  Sum( {$ <[A Date]={'>=$(=MonthStart(Max([A Date]))) <=29/11/2016'} >}  $($(='eAmt' )) )

2.

Sum( {$ <[A Date]={'>=$(=MonthStart(Max([A Date]))) <=$(=GetFieldselections([A Date]))'} >}  $($(='eAmt' )) )

Regards,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thanks

Not applicable
Author

got stuck with another expression, please provide your input.

during sum calculation... instead of field name I have expression to resolve into field name, not sure if I can do  both in  single go. can you please share how it can be achieved.

Sum( {$ <[A Date]={">=MonthStart(Max([A Date]) <='29/11/2016' "} >}  $($(='eAmt' )) expression)

example -Sum( {$ <[A Date]={">=MonthStart(Max([A Date]) <='29/11/2016' "} >}  $($(='eAmt' )) $($(='eAmount' & %Country)))

HirisH_V7
Master
Master

Hi,

Can you please elaborate your requirement,

You want to calculate sum(Amount) and that to between certain dates.Till there its fine and you want to include or exclude  particular country What!.

Make a small example kind off app.If possible.

-Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Hi All,

need your help to resolve below issue

variable defined
vft=placeholder
eSumAmt=Sum({$<$(vft)>} AMT)
TT='[A Date]={">=$(vMonthStart) <=$(A Date)"}'

want to override at object level
vft=$(TT)

to calculate
($($(='eSumAmt'),$(TT)  ) )

Current issue
getting out put as null, it seems there is issue with to calculate syntax