Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

gdipasquale1
New Contributor

Set Analysis date, issue with the expression editor

Hi all,

I'm pretty new to Qlik Sense (especially with set analysis) and I have some trouble.

I just want to get all past operations for the current year (so before today).

Here is my code :

Sum({$<[OPERATION_DATE.autoCalendar.Date] = {"<=$(Date(Today(),'MM/DD/YYYY'))"} ,[OPERATION_DATE.autoCalendar.Year] = {2018}>} OPERATION_ACCRUED_INT_AMOUNT_EUR)

I think there is an error in my code because the result is not the expected one (it seems that the today section does not work).

But I have some trouble to debug it using Qlik Sense Desktop (February version) because it seems that the expression analyser does not work as you can see in the screens attached.

Perhaps I'm not using it in the right way.

Any help would be appreciated.

Thanks.

1 Solution

Accepted Solutions
MVP
MVP

Re: Set Analysis date, issue with the expression editor

Try these changes

1) Add an equal sign after dollar sign expansion for Date set modifier

2) Add single quotes for Year (not necessary, but good practice)

Sum({$<[OPERATION_DATE.autoCalendar.Date] = {"<=$(=Date(Today(),'MM/DD/YYYY'))"} ,[OPERATION_DATE.autoCalendar.Year] = {'2018'}>} OPERATION_ACCRUED_INT_AMOUNT_EUR)

4 Replies
MVP
MVP

Re: Set Analysis date, issue with the expression editor

Try these changes

1) Add an equal sign after dollar sign expansion for Date set modifier

2) Add single quotes for Year (not necessary, but good practice)

Sum({$<[OPERATION_DATE.autoCalendar.Date] = {"<=$(=Date(Today(),'MM/DD/YYYY'))"} ,[OPERATION_DATE.autoCalendar.Year] = {'2018'}>} OPERATION_ACCRUED_INT_AMOUNT_EUR)

zebhashmi
Valued Contributor

Re: Set Analysis date, issue with the expression editor

all i see

Sum({$<[OPERATION_DATE.autoCalendar.Date] = {"<=$(=Date(Today(),'MM/DD/YYYY'))"} ,[OPERATION_DATE.autoCalendar.Year] = {2018}>} OPERATION_ACCRUED_INT_AMOUNT_EUR)

zebhashmi
Valued Contributor

Re: Set Analysis date, issue with the expression editor

Come on Sunny you are quick and fast

gdipasquale1
New Contributor

Re: Set Analysis date, issue with the expression editor

Many thanks it works well !