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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Carlaf_93
Creator II
Creator II

count kpi with fixed kpi

Good morning,

 

i would like to create a fixed kpi (if i select an agent it will give me the total value).

I'm vounting the numers of code.

Count(distinct{<AGENTS=, COD={"=(SUM({<[DATA.autoCalendar.Year]={'2021'}>}VALUE))>0"}> } COD)

I would like to count the numers od cod that had a value >0 in 2021 and that doesn't filters for agents.

This formula doesn't work. If i select a singe agents my kpi change accordingly.

Any ideas?

1 Solution

Accepted Solutions
sunny_talwar

Try this

Count(DISTINCT {<AGENTS, COD = {"=Sum({<[DATA.autoCalendar.Year]={'2021'}, AGENTS>}VALUE) > 0"}>} COD)

View solution in original post

3 Replies
sunny_talwar

Try this

Count(DISTINCT {<AGENTS, COD = {"=Sum({<[DATA.autoCalendar.Year]={'2021'}, AGENTS>}VALUE) > 0"}>} COD)
Carlaf_93
Creator II
Creator II
Author

Question: Why do you need to use 

AGENTS,

instead of agents =, 

 

?

sunny_talwar

Agents= or Agent does the same exact thing.... I like to use it without the equal sign to keep my expression cleaner, but this should work the same way

Count(DISTINCT {<AGENTS=, COD = {"=Sum({<[DATA.autoCalendar.Year]={'2021'}, AGENTS=>}VALUE) > 0"}>} COD)