Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set

Hi all,

I am very new into Qlikview I want below statement in set analysis How to achieve it

Total no. of call logs where Category = SDS* , Month = open date and Resolve date = current month


count({....>}[Call Log ID])



Thanks



1 Solution

Accepted Solutions
Not applicable
Author

Try:

=count({<Category={'SDS*'}, MonthName={"=$(vDumpOpenDate)"}, [SSR Resolve Date]={"=$(vMaxMonth)"}>}[Call Log ID])

View solution in original post

18 Replies
mrossoit
Creator II
Creator II

Hi,

supposing Month is a numeric field and 'open date' is a possible value of [Resolve date] try this:

count({<Category = {'SDS*'}, [Resolve Date]  = {'open date'},  Month = {'$(=num(month(today())))'}>} [Call Log ID])

Hope this helps

Regards,

MR

sagarkharpude
Creator III
Creator III

count({$< Category = {'SDS*'},Month = {'=$(vOpendate)'},Resolve date= {'=$(vCurrentmonth)'} >} [Call Log ID])

Crete 2 variables for vOpendate & vCurrentmonth

Anonymous
Not applicable
Author

When i tried i am getting error

=count({<Category={'SDS*'},Month={'=$(vDumpOpenDate)'}, [SSR Resolve Date]={'=$(vMaxMonth)'}>}[Call Log ID])

Not applicable
Author

What kind of error are you getting?

*Note: the format of Month and vDumpOpenDate variable value must be same and similar for SSR Resolve Date and vMaxMonth..

thanks,

Singh

sagarkharpude
Creator III
Creator III

what are the values of vDumpOpenDate & vMaxMonth.

Are they matching with your fields Month & [SSR Resolve Date].

Anonymous
Not applicable
Author

yes both format are same i getting syntax error

Anonymous
Not applicable
Author

vDumpOpenDate=month(date(max([DumpOpen Date]),'MM'))

vMaxMonth=month(Date(Today(Date),'MM'))

Not applicable
Author

The set analysis expression looks good. Does it show Red line in the expression panel? Can you cross check the field names once again?

Also, we could put hard coded values for testing initally.

thanks,

Singh

Anonymous
Not applicable
Author

set.png