Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
abhijith28
Creator II
Creator II

MonthEnd variable

i have created a variable: with the date field

vMonthEnd =  date(monthend(max(dates),-1))

but   =if(dates=$(='vMonthEnddd'),dates) is not working in filter pane.

1 Solution

Accepted Solutions
sunny_talwar

May be try this

If(dates = Floor($(vMonthEnd)), dates)

or this

If(dates = Floor(MonthEnd(Max(TOTAL dates), -1)), dates)

View solution in original post

6 Replies
PrashantSangle

try
if(dates=$(vMonthEnd),dates)
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 🙂
abhijith28
Creator II
Creator II
Author

No, it is showing NULL.

sunny_talwar

May be try this

If(dates = Floor($(vMonthEnd)), dates)

or this

If(dates = Floor(MonthEnd(Max(TOTAL dates), -1)), dates)
PrashantSangle

where you writing code??
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 🙂
abhijith28
Creator II
Creator II
Author

Thank you so much:)
If(dates = Floor(MonthEnd(Max(TOTAL dates), -1)), dates) is working fine..

abhijith28
Creator II
Creator II
Author

In the UI for pivot table