Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get a count of the data upto selected date from all the data????

Hi All,

how to get a count of the data upto selected date from all the data????

Data is:

Date                             Service ID

14/02/2010                 896846384ghhgfh

14/02/2010                  568956dgfd

14/02/2010                  568956dgfdfghd

15/02/2010                   dfygdfh6768

15/02/2010                   dfygdfh676856dg

16/02/2010                  dfygdfh676856dg345

if the user selects 14/02/2010 then count of service id is 3.

if the user selects 15/02/2010 then count of service id is 5.

if the user selects 16/02/2010 then count of service id is 6.

6 Replies
er_mohit
Master II
Master II

hiiii

try this

Count({<Date={"$(=Date)"}>}[Service ID])

Not applicable
Author

updated:


load

     Date,

     count(ServiceID) as count

     from table1

     Group by Date;

then on expression write

sum({$<Date>}count)

*********************************************************

or you can try

LOAD Date1,

     [Service-Id]

FROM

(ooxml, embedded labels, table is Sheet1);

and on expression---

Count({<Date1={"$(=Date1)"}>}[Service-Id])

Not applicable
Author

hi

I tried this also.

but i am getting the error invalid expression.

Not applicable
Author

hi

I tried this also.

but i am getting the error invalid expression.

Not applicable
Author

hi

I tried this also.

but i am getting the error invalid expression.

manideep78
Partner - Specialist
Partner - Specialist

Hi,

Change Date field to date type. Dates in the Date field should not be in text format.

Then take selected date in some variable like GetFieldSelections(Date);

after that take below expression in some text object

=Count({<Date={"<=$(vDate)"}>}[Service ID])

It worked for me.

see attached qvw

Hope this helps you.