Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ankhi
Creator
Creator

Query with Date and Straight Table

Hi

I have a straight table like below . There is also a filter in the page for F-Date.
The expression I am using is below. Just a dummy one to show all the fields as dimensions only.
But for Status=OSC,I don't want to apply the date filter (the two last rows) as some of the values of F_Date will be null for OSC however for the other two status(TRC & ACT) I still need to apply the date filter.

Is it possible to achieve such a condition? Can you please help?

Expression:

=Sum({<[Category]-={'Labour'}
[F_DATE] = {"<=$(=max(FISCAL_DATE))"}
>}1)

Project_id   Status   Amount   Category      F_Date
1                      TRC       100             Labour          02-Mar-20
1                      TRC       300             Labour          02-Mar-20
2                      ACT       200             Non Labour 01-Apr-20
3                      OSC      300             Labour           23-Feb-19
3                      OSC      300             Non Labour


Many Thanks in advance

Regards

Ankhi

Labels (1)
1 Reply
Brett_Bleess
Former Employee
Former Employee

Best I have is the following:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

That should allow you to check things to be sure you have the correct syntax on things etc.   The first design blog post has some other related posts linked at the bottom just FYI.

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.