I am working on an app, and there are customer complaints. If their is a complaint the date exists, if not the date is not in the application.
We want to calculate the record number of days between complaints and the current number of days without a complaint.
Could you help me figure out the formulas? looking to do KPIs.
put ur date field into a filter; and show us an image?
and then create a new filter : Month(YourDate) and show us the image (I want to see if qlik's recognizing ur date as a date or not)
but, before taht, try date(YourDate)-today(1)
Obviously, put that in a table, with a dimension: No. to aggregate your calculaiton
Qlik is recognizing my date as a date. I already have Month, Year , Date and Day filters in this application, all show as what they should be.
I tried date("Date")-today(1) and "date" - today(1) and neither worked.
These dates are dates of complaints filed with us from our customers. We want to know the maximum number of days we have had this year between complaints. And currently how many days we are without a complaint currently.
In the script do as follow:
load * , DateField- Previous(DateField) as NumberOfDays ;
"Date" as DateField
FROM [lib://DOSSIER telechargements/Data Qlik Question.xlsx]
(ooxml, embedded labels, table is Sheet1);
let vMaxDate= peek('DateField',-1,'table');
then in your sheet:
1) Create a table:
= 'difference between' & aggr([No.]&'-'&Above([No.]),[No.])
u can change No. by ur dateField
Color ur measure by expression:
and create a text chart with measure :
=' Number of days without complaints :'& (Today(1)- vMaxDate)