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: 
Not applicable

Date field help

I have a field called Expense Year - Month.

Expense Year - Month

12/13/1987

11/24/1987

1/3/2016

2/5/2016

1/6/2017

2/6/2017

2/6/2018

3/6/2018

I only want to display

1/3/2016

2/5/2016

1/6/2017

2/6/2017

basically 12 months from current month.How can I do this ?

Thanks bunch.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

IF([Expense Month-Year] >= MonthStart(Today()) ,

AND [Expense Month-Year] <= MonthEnd(Today(), 12) ,[Expense Month-Year])

Hope this helps you.

Regards,

jagan.

View solution in original post

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this in set analysis

=Sum({<YearMonth = {'>=$(=MonthStart(Today()))<=$(=MonthEnd(Today(), 11))'}>} MeasureName)

Regards,

jagan.

Not applicable
Author

IF([Expense Month-Year] >= MonthStart(Today()) ,

   

IF([Expense Month-Year] <= MonthEnd(Today()) + 12,[Expense Month-Year]))

I have this as expression in my list box and its not displaying proper year.

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

IF([Expense Month-Year] >= MonthStart(Today()) ,

AND [Expense Month-Year] <= MonthEnd(Today(), 12) ,[Expense Month-Year])

Hope this helps you.

Regards,

jagan.

Not applicable
Author

Awesome.That worked..Thank you.