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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
logistici
Contributor II
Contributor II

Edit Expression Less than 'Today()'

Hello,

I have a question concerning dates.

I want to have a text object with specific filters.

I want to have the sum of NETLINEVAL for the previous Year until TRNDATE AddYears(Today(),-1).

=Sum({1<YEARR={'$(=Year(Today())-1)'},TRNDATE={"<=$(=AddYears(Today(),-1))"} >} NETLINEVAL)

Unfortunatly, it doesn't work. I don't have the right results.

Regards.


1 Reply
PrashantSangle

Hi,

check your date format if "TRNDATE" and "=AddYears(Today(),-1)"


Are you calculating PY-YTD


=Sum({1<YEARR={'$(=Year(Today())-1)'},TRNDATE={">=$(=date(YearStart(Today(),-1)))<=$(=date(AddYears(Today(),-1)))"} >} NETLINEVAL)


Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂