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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
hathwarjaya
Contributor
Contributor

Set Analysis

Hello,

I am new to qlikview .

I want to write the following expression in set analysis.

count(if(monthname(Date)>=Monthname(AddMonths(Date(Today()), -13) ) ,Ticket))

Please help me with this.

Thanks & Regards,

Jaya

Labels (1)
4 Replies
Digvijay_Singh
MVP
MVP

May be this -

count({<Date= {">=$(=MonthStart(AddMonths(Today(), -13)))"}>}Ticket)

Qrishna
Master
Master

Hi - in your COUNT expression you are using an expression for a field name, so,you can write a set expression something like this -

COUNT ( {$ < $(=monthname(Date)) = {'$(=Monthname(AddMonths(Date(Today()), -13) ) )'}  >} Ticket )


if you are looking for a 'count' of 'Ticket' where Month name of a 'Date' equals Month Name of 'AddMonths(Date(Today()), -13) )' date


Hope that helps.

hathwarjaya
Contributor
Contributor
Author

hello Digvijay,

Thanks for helping.

I am want to show the count of tickets in a bar chart for last 13 months ignoring the selections.

Please let me know the expression you have provided would give me that.

Regards,

Jaya

hathwarjaya
Contributor
Contributor
Author

Hello Krishna,

Thanks for your reply.

I am want to show the count of tickets in a bar chart for last 13 months ignoring the selections.

Please let me know the expression you have provided would give me that.

Regards,

Jaya