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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Timario
Contributor III
Contributor III

Problem with date

Hello. 

I'm trying to get information by date in expression 

Sum({<[Year-month], [need_date]={"> <=$(= Date( $(= today() - count_days ) ) ) "} >} values ). But it's not working in case you don't choose any value in filter, but works when company is chosen.

count_days is variable from table. I don't see difference between count_days and $(count_days) in this case.

Sorry for my english.

 

Labels (3)
1 Solution

Accepted Solutions
Timario
Contributor III
Contributor III
Author

Sum({<[Year-month]>}if([need_date]<=today()-[count_days]), values) 

It's solution. Thank's to all

View solution in original post

9 Replies
kiranmanoharrode
Creator III
Creator III

Hi,

Please check your expression,

Sum({<[Year-month], [need_date]={"> <=$(= Date( $(= today() - count_days ) ) ) "} >} values )

I think '>' sign highlighted in bold is causing the issue. 

Timario
Contributor III
Contributor III
Author

Unfortunately, without sign expression shows 0

anat
Master
Master

can u check $(= Date( $(= today() - count_days ) ) ) ,[need_date] both date format are in syc or not?

Timario
Contributor III
Contributor III
Author

1.png

2.png

  Yes... Both date are the same format. Main problem with variable is count_days. When I change on 90, expression works 

anat
Master
Master

in that case can u try by passing the number instead of using variable,if it works then check what's wrong in  variable 

Timario
Contributor III
Contributor III
Author

How can I passing the number? 

 

The Date(today() - count_days, 'DD.MM.YYY') function returns the date I need

vikasmahajan

Sum({<  Company,[Year-month], [need_date]={"> <=$(= Date( $(= today() - count_days ) ) ) "} >} values )

 

Add more and try

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Timario
Contributor III
Contributor III
Author

It doesn't work. And also need show one company, but this expression shows all companies

Timario
Contributor III
Contributor III
Author

Sum({<[Year-month]>}if([need_date]<=today()-[count_days]), values) 

It's solution. Thank's to all