Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
In my Qlik Sense application, the data in present as below.
Frim | Case No | Status | Record Create Date |
---|---|---|---|
A | 100 | 1 | 9/1/2017 |
A | 100 | 2 | 9/10/2017 |
A | 100 | 3 | 9/20/2017 |
A | 200 | 1 | 9/1/2017 |
A | 200 | 3 | 9/10/2017 |
A | 300 | 1 | 9/10/2017 |
A | 300 | 3 | 9/20/2017 |
The description if the status values are
Status | Description |
1 | Started |
2 | In progress |
3 | Complete |
Now in my dashboard there are 2 filters. One is start date and end date. In the dashboard I need to show the Count of Closed Case by Firm for the period between the values selected in the filters start and end date.
The status of a case in the period between the values selected in the filters start and end date will be the max value of status within that period.
So, if the user selects Start Date=9/1/2017 and End Date=9/10/2017, then Count of Closed Case will be 1 as Case No 200 only has highest status as Complete within that period.
Can anyone please let me know the formula for this dimension.
Thanks,
Rajarshi Guin
Maybe this
=count({<Status={'3'},[Record Create date]={'>=[Start Date]<=[End Date]'}>}distinct(Firm))
Regards
Pratyush
You can use a Straight table with:
Dim: Firm
Expression: count( {< Status = {'3'}, [Record Create date] = {">=$(vStartDate)<=$(vEndDate)"} >} DISTINCT [Case No] )
where vStartDate and vEndDate could be two input variables the user submitted.
Hi
Try like this
Dimension: Firm
Expression: Count( {< Status = {3}, [Record Create date] = {">=$(vStartDate)<=$(vEndDate)"} >} DISTINCT [Case No] )
Both vStartDate and vEndDate are the variables and its must be same date format as like "Record Create Date"