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

Set expression

Not reading properly please help on below expression

Dimensions> target date,com-code

Sum({<DATE={'$(=Addmonths (DATE,1))'>}sales)

12 Replies
PrashantSangle

Hi,

What are trying to achieve? might be date format is change after applying addmonths().

try like

Sum({<DATE={'$(=date(Addmonths(DATE,1),'YourDateFormat'))'>}sales)


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 🙂
yasmeenk
Partner - Creator
Partner - Creator

Hi,

What is your exact need?

sunny_talwar

I would suggest double quotes for outer single quotes

Sum({<DATE={"$(=Date(Addmonths(Max(DATE), 1), 'YourDateFormat'))"}>}sales)

But this still might not work because you havn't provided the context of what you are trying to do here?

Not applicable
Author

Am trying to get for next month no of employees

which is DOJ>TARGET DATE

I have created flag

If(DOJ>Target date,1,0) as flag1

In expression > sum ({<flag={1},......>.}employees)

Any suggestions??

sunny_talwar

So what is DATE here?

Not applicable
Author

Based on the DOJ here I mentioned only doj

Sum({<flag1={'1'},DOJ={"$()"}>}reqd employee)

Pls help

sunny_talwar

Can you provide few rows of sample data and explain the desired output based on your sample?

Not applicable
Author

To make a report by using these dimensions

Requisition number,

Requisition date,

Target date,

And expression which I have explained.