Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
qlik4asif
Creator III
Creator III

What is wrong in expression

Hi All,

please help me in the below expression

=Num(Sum({<Function={'Seeds Ops'},DateMonth={Date(Addmonths(vMaxDate_IIR,-12),'YYYY-MM')}>}YTD),'##.00')

Capture.PNG

15 Replies
qlik4asif
Creator III
Creator III
Author

Hi Sunny,

Could you please find the error for the below expression

=Num(Sum({<DateMonth={">=$(=Yearstart(vMaxDate_E2E_Seeds_ProductionCost))<=$(=YearEnd(vMaxDate_E2E_Seeds_ProductionCost))"}>}BUD),'##.###')

Anil_Babu_Samineni

May be

=Num(Sum({<DateMonth={">=$(=Yearstart($(vMaxDate_E2E_Seeds_ProductionCost)))<=$(=YearEnd($(vMaxDate_E2E_Seeds_ProductionCost)))"}>}BUD),'##.###')

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
qlik4asif
Creator III
Creator III
Author

Thanks Anil for the reply

But its not working

Anil_Babu_Samineni

May be with equal sign

=Num(Sum({<DateMonth={">=$(=Yearstart($(=vMaxDate_E2E_Seeds_ProductionCost)))<=$(=YearEnd($(=vMaxDate_E2E_Seeds_ProductionCost)))"}>}BUD),'##.###')

can you describe how you define the variables if none of them working

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
shraddha_g
Partner - Master III
Partner - Master III

Try

Num(Sum({<DateMonth={">=$(=Date(Yearstart($(vMaxDate_E2E_Seeds_ProductionCost)),'YYYY-MM'))<=$(=date(YearEnd($(vMaxDate_E2E_Seeds_ProductionCost)),'YYYY-MM'))"}>}BUD),'##.###')

sunny_talwar

Or this

=Num(Sum({<DateMonth = {">=$(=Date(Yearstart(vMaxDate_E2E_Seeds_ProductionCost), 'YYYY-MM'))<=$(=Date(YearEnd(vMaxDate_E2E_Seeds_ProductionCost), 'YYYY-MM'))"}>}BUD), '##.###')