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: 
Not applicable

KPI Help

Hi All,

Reasonably new to QlikView.

Require help to create a KPI (using text object) which considers a condition 

Condition = Where fieldname = 'Critical'

A time difference is checked...2 fields ( Start time and End time)

Time difference is then checked against a fixed number from another field (Target)

If target is exceeded(fails) want to display a % of failures.

Thanks

Shahid

6 Replies
Anil_Babu_Samineni

May be this?

Sum(Aggr(If(([Start time] - [End time]) > Target, Num(Sum({<fieldname = {'Critical'}>} Measure),'#,#0%')), [Start time], [End time]))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
dinuwanbr
Creator III
Creator III

Hi Hamid,

Can you upload a sample for better understanding?

Rgds,

Tharindu

Not applicable
Author

Just a add a little more context

Checking 'incident age' vs 'target'  and calculating the number of Breached or Met strings for each priority as a %.

If target exceeds 80% then present % as a green text with words exceeds target and lower than 80% as lower than target. Hope this helps.

    

INCIDENT AGE (mins)PRIORITYSTATUSTARGET (mins)
200CRITICALBREACHED120
20CRITICALMET120
39MEDIUMMET750
45MEDIUMMET750
900HIGHBREACHED500
12HIGHMET500
67LOWMET1000
Not applicable
Author

INCIDENT AGE (mins)PRIORITYSTATUSTARGET (mins)
200CRITICALBREACHED120
20CRITICALMET120
39MEDIUMMET750
45MEDIUMMET750
900HIGHBREACHED500
12HIGHMET500
67LOWMET

1000

To clarify.. another viewpoint... for each PRIORITY count  STATUS type and display % for PRIORITY category. Guess can have KPI for each PRIORITY. If % value 80% then Green text for % vale with 'Exceeded Target' wording and vice versa below 80%.

Anil_Babu_Samineni

May be explain data set and result set needed.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kushal_Chawda

Please specify the logic to calculate % and expected output