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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
johndemars
Contributor II
Contributor II

Formula to measure coverage

Hi,

I'm trying to get a formula to measure the coverage of my account portfolio. 

For example:

Accountnumber of visits
Account A5
Account B1
Account C3
Account D0

 

So the coverage will be 75% because 3 of the 4 accounts has a minimum of 1 visits.

Tnx

John

2 Replies
GaryGiles
Specialist
Specialist

If [number of visits] is a field in your table, you could use:

count({$<[number of visits]={">0"}>} Distinct Account) / count(Distinct Account)

If the table has a unique row for each visit and the visit field contains 1, you could use somthing like:

count({$<Account={"=sum(visit)>0"}>} Distinct Account) / count(Distinct Account)

johndemars
Contributor II
Contributor II
Author

Hi Gary,

The data is in two tables associated on Account.

johndemars_0-1619555851048.png