Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

urgent help on expression

Hi,

I have expression.

= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} Count)

I want to add one more condition.

- ONly Count where Success = 1.

How to do that.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = 1, Count))

View solution in original post

6 Replies
MK_QSL
MVP
MVP

= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = 1, Count))

Anonymous
Not applicable
Author

Hi,

Try below script code.

= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"},Success = {1}>} Count)


Thanks

Not applicable
Author

Hi Manish,

I have to do 100 - expression and %.

I am trying as below but giving error:

= Num(100-(= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = -1, Count))/

count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>}  Count)),, '#.00 %')

Not applicable
Author

Hi Dhiraj,

I have to do 100 - expression and %.

I am trying as below but giving error:

= Num(100-(= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = -1, Count))/

count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>}  Count)),, '#.00 %')

MK_QSL
MVP
MVP

NUM(100-(count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = 1, Count))/

count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} Count)),'#,##0.00%')

PrashantSangle

Hi,

Why is there two ,, at end

= Num(100-(= count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>} If(Success = -1, Count))/

count( {$<CtrlOnYear=,CtrlOnDay=,CtrlOnMonth=, CtrlOnDate= {"<=$(=date(vMaxDate))"}>}  Count)) ,,

'#.00 %')

try

with single , and above solutions

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂