Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Magogar
Contributor III
Contributor III

Keep date unchanged in a year function

Hi!

I'm trying to solve this problem but I can't

For any selection I make, I want to keep only the date unchanged. I tried to put {1} in the function but when I put it in autocalendar.year it doesn't work.

Sum({<[mdate.autoCalendar.Year]={"$(=Year(MonthEnd(max({1}[mdate]),-1)))"}>} ops)

 

How can I solve that?

Thank you!

 

 

 

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI

You need to ignore the time filters like below

Sum({<[mdate.autoCalendar.Year]={"$(=Year(MonthEnd(max({1}[mdate]),-1)))"}, mdate.autoCalendar.Month=, mdate.autoCalendar.Day=,mdate=>} ops)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI

You need to ignore the time filters like below

Sum({<[mdate.autoCalendar.Year]={"$(=Year(MonthEnd(max({1}[mdate]),-1)))"}, mdate.autoCalendar.Month=, mdate.autoCalendar.Day=,mdate=>} ops)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Magogar
Contributor III
Contributor III
Author

It works. Thank you!