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

Rest of the Month Flag

Hi

I currently have a requirement to show the plan from today to the end of the month.

Example: Plan should be display from Today 08/19/2016 to End of Month 08/31/2016.

I had written the expression on UI as

Sum({<Date={">=$(=Today())<=$(=MonthEnd(Today(),0))"}>}Plan)

I'm just thinking of a way to write this in flags on script level.

Can someone help me in achieving this?

Thanks

Satish

1 Solution

Accepted Solutions
sunny_talwar

Try this may be:

LOAD DateField:

          If(DateField >= Today() and DateField <= MonthEnd(Today()), 1, 0) as Flag

FROM .....

and then just do

Sum({<Flag = {1}>} Plan)

View solution in original post

3 Replies
sunny_talwar

Try this may be:

LOAD DateField:

          If(DateField >= Today() and DateField <= MonthEnd(Today()), 1, 0) as Flag

FROM .....

and then just do

Sum({<Flag = {1}>} Plan)

Anonymous
Not applicable

Is it OK to use where condition?

Select * from table_name

where  date_field > Today() and date_field< MonthEnd(Today(),0)

Anonymous
Not applicable

Cool idea.