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: 
mhmmd_srf
Creator II
Creator II

Count of Days

Hi all,

I have one requirement like if I select one date from it will show me the distinct count of Dates till date. Like below as an example:

If I select 7/5/2017 , then it should show 3 as Count of Days. But if I select any date it is always showing 1.

I am attaching my sample App.

Please help.

Thanks,

Sarif

1 Solution

Accepted Solutions
sunny_talwar

May be this

=NetWorkDays(MonthStart(Max(CstDate)), Max(CstDate))

View solution in original post

6 Replies
sunny_talwar

If 7/5/2017 is selected, then you want to see 3, otherwise you want to see 1?

mhmmd_srf
Creator II
Creator II
Author

Yes. I will select a date and it should show count of distinct date from First Date of the Month till that Date.

sunny_talwar

May be this

=NetWorkDays(MonthStart(Max(CstDate)), Max(CstDate))

Kushal_Chawda

try below expression in text object

=Date-min({1}Date)+1

tresesco
MVP
MVP

May be:

=Max(CstDate)-MonthStart(Max(CstDate))

Kushal_Chawda

or try this

=count( {<CstDate={"=sum({<CstDate={'>=$(=min({1}CstDate))<=$(=max(CstDate))'}>}OrdersReceivedUnits)>0"}>} distinct CstDate)