Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ZigaD
Contributor II
Contributor II

KPI Target Days met

Hi

have a small Q for your. need to do KPI, where need to be calculated how many invoices was issued below X days. all invoices below or same as X days are on target.
My data are only to parametrs A as date of order and B date of issue day.

thank you for you assistance

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

Create a day field in script

LOAD *,Date_of_isse - Date_of_order as Days

FROM Data.qvd(qvd);

 

Then you can create KPI using  below expression

=Count({<Days ={"<30"}>} InvoiceNo)

View solution in original post

8 Replies
Kushal_Chawda
MVP
MVP

Create a day field in script

LOAD *,Date_of_isse - Date_of_order as Days

FROM Data.qvd(qvd);

 

Then you can create KPI using  below expression

=Count({<Days ={"<30"}>} InvoiceNo)

ZigaD
Contributor II
Contributor II
Author

Hi

got this error

 
Kushal_Chawda
MVP
MVP

Which error?

ZigaD
Contributor II
Contributor II
Author

2020-01-08 11_05_16-Qlik Sense Desktop.png

pardon this one

Kushal_Chawda
MVP
MVP

Hi,

I had just given an example. You should use your actual data source  instead of what I have used.

ZigaD
Contributor II
Contributor II
Author

i did and also change column names to yours but still the same outcome

in data model view i can see data and i can also use it in analaysis screen

ZigaD
Contributor II
Contributor II
Author

hi

found solution with only your formula.

=Count({<NetDays={"<=2"}>} InvoiceNo)

where i add one more column in excel with function NetWorkingDays

 

appriciate your help on this topic

Kushal_Chawda
MVP
MVP

Please mark the appropriate answer as correct So that others can refer for the same problem