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: 
tsoley9262
Contributor III
Contributor III

Text Object

I am creating a text object using the following code '=Num(Count(if(State = 'ONLINE'and ID ='s',1.0)),'#.##%')', it is showing me 2800.00% and I am trying to get it o be 100.00% when all the fields show ONLINE.

Labels (1)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

you are getting a count. so it will never be 100% unless the count value is 1

you should change your code to

count(Online condition)/count(totalnumber) with your number formatting

View solution in original post

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

you are getting a count. so it will never be 100% unless the count value is 1

you should change your code to

count(Online condition)/count(totalnumber) with your number formatting