Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
israrkhan
Specialist II
Specialist II

if statement to set analysis

Hi Guys.

can some one help me to convert below if statement into set analysis.

=count(  if(   (status = 'Closed' or status = 'resolved' ) and( measurementstatus = 'missed') and if (assigned_group like '*client*', title like '*abc*' , title like '*cde* )   ,  number  )    )  

your help would be much appreciated...!

Thanks

Khan

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Your original post was not very clear. Try this:

count({< status = {'Closed' ,'resolved'}, measurementstatus = {'missed'}, assigned_group = {'*client*'}, title={'*abc*'}> +

< status = {'Closed' ,'resolved'}, measurementstatus = {'missed'}, assigned_group -= {'*client*'}, title={'*cde*'}>} number)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

9 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

it should be something like

count(  {< status = {'Closed' ,'resolved' }, measurementstatus = {'missed'},assigned_group ={ '*client*'}, title={ '*abc*','*cde*' }>}  number  )     

sujeetsingh
Master III
Master III

count(  {< status = {'Closed' ,'resolved' }, measurementstatus = {'missed'},assigned_group ={ '*client*'}, Wildmatch(title, '*abc*','*cde*')={1}>}  number  )

Not applicable

Hello IsrarKhan,

Try the below set analysis.

COUNT({<Status={'Closed','resolved'},measurementstatus ={'missed'},assigned_group={'*client*'},Title={'*abc*','*cde*'}>}Number)

jagan
Luminary Alumni
Luminary Alumni

Hi Israr,

Try this

=count( {<status ={ 'Closed', 'resolved'} , measurementstatus = {'missed'}, assigned_group ={'*client*'}, title={'*abc*','*cde*'}>} number )


Hope this helps you.

Regards,

Jagan.

israrkhan
Specialist II
Specialist II
Author

Thanks guys..

You assigned *client* to assigned_group all the time..

But i have to check if Assigned group = *client*

When Assigned_group =*client* then take *abc* else take *cde*..

Just read twice, you will get it..i think p () function will be use here....

israrkhan
Specialist II
Specialist II
Author

Kindly see the original question, having paroblem in red area...the second if statement...

sasikanth
Master
Master

HI,

Try some thing like

Script level :

load *, wildmatch( assigned_group,'*client*') as FLAG;

load * from table;

Expression:

=count( {<status ={ 'Closed', 'resolved'} , measurementstatus = {'missed'},title={"$(=pick(wildmatch(FLAG,1,0),'*abc*','*cde*'))"}>}number )

jonathandienst
Partner - Champion III
Partner - Champion III

Your original post was not very clear. Try this:

count({< status = {'Closed' ,'resolved'}, measurementstatus = {'missed'}, assigned_group = {'*client*'}, title={'*abc*'}> +

< status = {'Closed' ,'resolved'}, measurementstatus = {'missed'}, assigned_group -= {'*client*'}, title={'*cde*'}>} number)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

This should work also:

count({<status = {'Closed' ,'resolved'}, measurementstatus = {'missed'}> *

(<assigned_group = {'*client*'}, title={'*abc*'}> + <assigned_group -= {'*client*'}, title={'*cde*'})>} number)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein