Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sharad02
Contributor II
Contributor II

If condition within Set Analysis expression

Can you please help to me to write the below if condition inside the set analysis please

I wanted convert those if condition into set analysis

=if(Indicators_RPA = 'Success rate'
,num(
Alt(count(DISTINCT{<Status = {'3'}
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}>}
if(len(Stream_RPA)>0,
Id))
/
count(DISTINCT{<Status =
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}>}
if(len(Stream_RPA)>0,
Id))
, 0)
,'0.00%'))

 

I appreciate if you could help me to resolve the issue.

Labels (4)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

 

as below

 

 =if(Indicators_RPA = 'Success rate'
,num(
Alt(

count(DISTINCT{<Status = {'3'}
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}

,Id={"=len(Stream_RPA)>0"}

>}
Id)
/
count(DISTINCT{<Status =
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}>}

,Id={"=len(Stream_RPA)>0"}

>}
Id) , 0) 

,'0.00%'))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

 

as below

 

 =if(Indicators_RPA = 'Success rate'
,num(
Alt(

count(DISTINCT{<Status = {'3'}
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}

,Id={"=len(Stream_RPA)>0"}

>}
Id)
/
count(DISTINCT{<Status =
,StartProcessing = {"<=$(=Date(vRPAToDate, 'D.M.YYYY 23:59:59'))"}
,EndProcessing = {">=$(=Date(vRPAToDate - 90, 'D.M.YYYY 0:00:00'))"}>}

,Id={"=len(Stream_RPA)>0"}

>}
Id) , 0) 

,'0.00%'))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.