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

expression to compare two results in the same field

I have a field (Delivered on Time) that reports either "Delivered On Time" or "Delivered Late"  I tried to do a few expressions, but Qlik did not accept them, and cannot figure out what I am missing.  It tells me I am missing a ")" but I could not tell where.

Labels (1)
1 Solution

Accepted Solutions
chayeneg
Contributor II
Contributor II

Count({<[Delivered On Time] = {'Delivered On Time'}>}[Delivered On Time] )

/

Count([Delivered On Time])

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Share the expression you have used for a better understanding of your problem.

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
baderbd
Contributor II
Contributor II
Author

Thanks for answering.  I have been trying constantly.  I am now on this expression

Count(distinct [Delivered On Time]) / count([Delivered On Time] = "Delivered On Time")

Basically I need to show the percentage of the amount of times the delivered on time field returns delivered on time.

chayeneg
Contributor II
Contributor II

Count({<[Delivered On Time] = {'Delivered On Time'}>}[Delivered On Time] )

/

Count([Delivered On Time])

baderbd
Contributor II
Contributor II
Author

Thanks I tried this but the math did not work.

chayeneg
Contributor II
Contributor II

Can you explain why the math didn't work?
Do you have the total count of the 'delivered on time' field and the total count of the 'delivered on time' field is 'delivered on time' to share?

baderbd
Contributor II
Contributor II
Author

Hey I must have goofed bringing in the expression, it totally works.