Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Skylia
Contributor II
Contributor II

How can I filter a KPI using a date?

Hello everyone!

I need your help 🙂 I have to make a KPI with these rules:

(1) I have to count a number of records when the column is "Yes" for the last 12 months of a date field ( date + 30 calendar days). Note: I must add 30 calendar days to this date field.

(2) I have to count only the records that have breached the field [date + 30 calendar days], this is compared with Today(). So I would get the unfulfilled

(3) Obtain the final calculation: (1 / 2) %

I stayed here

Count({<[COL1]={"Y"}>}[N_Register]

Year([DatePas]+30)-1 

EXTRA: How can I add calendar days to a date?

1 Reply
Skylia
Contributor II
Contributor II
Author

I do it!

 

num(Count({<[AÑOMAXIMO]={">=$(vMinAñoFechaMaxA)<=$(vMaxAñoFechaMaxAtencionA)"},[Presentacion recurso de reconsideracion]={"SI"},[FechaMaxima]={"<05/05/2021"}>}[N_REGISTRO_MODULO])
/Count({<[AÑOMAXIMO]={">=$(vMinAñoFechaMaxA)<=$(vMaxAñoFechaMaxAtencionA)"},[Presentacion recurso de reconsideracion]={"SI"}>}[N_REGISTRO_MODULO]),'#,##0%')