Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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!