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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Vittore8
Creator
Creator

SetAnalysis Date Help

Vittore8_0-1594897818460.png

Good day, please tell me how i can get count: 2

Vittore8_1-1594898042960.png

rezult: 2 because, this date 01.07.2020 included in the range and there is a Work status

Labels (1)
2 Replies
Kushal_Chawda
MVP
MVP

Can you please elaborate?

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Am not sure I understand well your request, however, try suggestion below.

Example data

tmp:
LOAD Start_Date,End_Date,Status,
IF(Status='Work' AND Start_Date <= DATE(TODAY()) AND End_Date >= DATE(TODAY()),1,0)
AS [Flag_Include]

INLINE [

Start_Date,End_Date,Status
01/01/1999,02/02/2030, Work
12/10/2000,19/04/2044, Work
12/11/2005, 20/06/2050, No-Work
];

 

In UI drag & drop table object

DIMs: Status, Start_Date, End_Date

Expression:  =COUNT({<Flag_Include={1}>} Status)

 

Hope this helps