Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa2
Contributor
Contributor

Percentage of days less than a certain date

Hello, I have created a gauge chart that shows the count of received dates to show the number of items that have been received.  But I need to create a red segment that shows the percentage of items received after the due date. I was thinking something like:

=if(sum(count(ReceivedDate > NeedDate)/total(ReceivedDate))>.30), 'red', green)

So if 30% of the items received are received after the need date, then the dial should be in the red.  I am not sure how to do this or how the syntax should be.  If someone could point me in the right direction. Thanks!

 

Labels (3)
1 Reply
Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post, there is an example app attached, hopefully that may help you get things sorted unless you are strictly trying to figure out the expression in which case you may need to attach sample QVW for folks to be able to sort that for you.

https://community.qlik.com/t5/Qlik-Design-Blog/Dislike-gauge-charts-You-may-want-to-give-them-a-seco...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.