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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Tamizharasan1
Contributor II
Contributor II

How to filter the data table using Filter pane value in Qlik Sense desktop?


I have a data table, so I need to filter the data using a 'greater than or equal to' condition based on the values selected by the user from the filter pane.

Tried the above expression
Sum({<[Date_of_Last_Invoice]= {"<=$(=Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD'))"}>}Invoice)

 

But shows like Error in expression.

 

Qlik Sense Desktop   @devarasu07   

Labels (1)
14 Replies
Ruggero_Piccoli
Support
Support

Hi,

Could you share the error message? 

Qlik Sense stores dates as numeric fields, so check that [Date_of_Last_Invoice] is stored as date field. Be sure that all data types involved in the expression are consistent.

You can use temporary text boxes to verify the results of Min([Date_of_Last_Invoice] and of Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD').

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Tamizharasan1
Contributor II
Contributor II
Author

Hi,

Thanks for your Support.

Verified the results, and it showing as expected, like Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD').

But when I try to use this line
"Sum({<[Date_of_Last_Invoice]= {"<=$(=Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD'))"}>}Invoice)"

showing error.

Please find the attachment.

 

 

Ruggero_Piccoli
Support
Support

Hi,

Try Sum({<[Date_of_Last_Invoice]={">=$(=Min([Date_of_Last_Invoice]))"}>} Invoice). 

This Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD') is returning a string but the comparsion is with the numeric value [Date_of_Last_Invoice] I suppose.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Tamizharasan1
Contributor II
Contributor II
Author

I tried the Sum({<[Date_of_Last_Invoice]={">=$(=Min([Date_of_Last_Invoice]))"}>} Invoice), but it is still showing an error in expression.

Please find the attachment.

Ciya
Contributor III
Contributor III

Hi Tamizh,

Try below expression. use ' instead of ". It's worked for me. 

Sum({<[Date_of_Last_Invoice]= {'<=$(=Date(Min([Date_of_Last_Invoice]),'YYYY-MM-DD'))'}>}Invoice)

 

Thanks,

Chaithra

 

Tamizharasan1
Contributor II
Contributor II
Author

Hi Chaithra,

Thanks for your support.

I have tried but it still showing an error in expression and Column invalid dimension. Apart from anything else, I need to modify?

Please find the attachment.

Eva_L
Partner - Contributor
Partner - Contributor

In the attached image it looks like it does not know your measure field "Invoice". Is it maybe in lower case or did you rename it?

Tamizharasan1
Contributor II
Contributor II
Author

Thanks for your support.

 

I have tried using different options, as shown in the attachment (Invalid Dimension). Since I am using 'Invoice' as the alias name for the expression, how should I choose the name?

Could you help me on this?

Ciya
Contributor III
Contributor III

I have tried below expression in my report, 

Sum({<[Order Date]= {'<=$(=(Min([Order Date])))'}>}COGS)

where,

Measure = COGS

Dimension = [Order Date]

There are fields should highlight in red. I think in your screenshot Invoice is in Black color. Please check once. 

Ciya_0-1732695786631.png

Replace your metrics.