Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

i write this code for percentage expression showing error

='(' & if(IsNull(num(count(DISTINCT {$<Link_Flag={'Resolve'},  TicketStatus={'Resolved','Closed'},Process={'$(vProcess)'}>} TicketID)/

count(DISTINCT {$<Process={'$(vProcess)'}>} TicketID),'###.##%')),

0,

num(count(DISTINCT {$<Link_Flag={'Resolve'},  TicketStatus={'Resolved','Closed'},Process={'$(vProcess)'}>} TicketID)/

count(DISTINCT {$<Process={'$(vProcess)'}>} TicketID),'###.##%')) & ' )'

1 Reply
Gysbert_Wassenaar

To begin with replace the if statement with the alt function:

='(' & alt(num(count(DISTINCT {$<Link_Flag={'Resolve'},  TicketStatus={'Resolved','Closed'},Process={'$(vProcess)'}>} TicketID)/count(DISTINCT {$<Process={'$(vProcess)'}>} TicketID),'###.##%'),0) & ')'

Then if that still gives an error, which I assume it will, post a document that demonstrates the problem. Without looking at the expression in the context of your document it is not possible to tell what is wrong.


talk is cheap, supply exceeds demand