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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
davyqliks
Specialist
Specialist

Sum If date condition

Hi,

I need to only show the last order date if greater than 90 days old.

I have used the condition in the colour function to highlight red and it worked like this:

if(Today()-90>= Only( [Last Order Date UK]),
rgb(255,26,26),)

But i now need to only show the line and date if this condition is met:

I use the below which in my mind looks right with no syntax issue but the date returns 0

if(Today()-90>=,Only({$<Location = {'UKInv'},[Retailer Name] = {'ASOS'}, [Item Default Production Method] = {'In-House(Stock)','Outsource(Stock)'}>}[Last Order Date]))

 

Can someone inform how i can display the date when only older than 90days with this set analysis.

Thank you

 

 

 

Labels (2)
11 Replies
Brett_Bleess
Former Employee
Former Employee

@davyqliks  It would likely be most helpful at this point if you attach a sample QVW file with the issue, so folks can dig into things a bit more deeply, believe that is the best avenue forward on this one to ensure you get a good solution.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
davyqliks
Specialist
Specialist
Author

Hi All,

To update i ended up using an if flag True false in the load and using this in set analysis.

Thanks  for your help.

 

Load

if( (Today()-[Last Order Date])>=90,True(),False() )as [RO>90FLAG],

expression in chart

Sum({< [RO>90FLAG] = {'-1'} >}[Stock Estimated Balance RO] * ([RO Invoice Item Unit Price] * 0.9021000 ))

 

I hope this may help somebody going forward.

 

Daniel