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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Help

Hi all,

i m trying on one thing i.e if select current month i want count for all Ticket Count at the same time i want count for previous Month also.Can any one help on this ?

PFA..

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi Nagarjuna,

Did you checked SasiParupudi1‌expression for 2016 January for Previous month expression?  It won't return correct numbers.

Instead check with below expression for same scenario

=Count({<Year=, Month1=, Month={'>=$(=MonthStart(Max(Month), -1))<=$(=MonthEnd(Max(Month), -1))'}>}Tic_No)


Hope this helps you.


Regards,

Jagan.

View solution in original post

8 Replies
sasiparupudi1
Master III
Master III

=Count({<Month1={$(=Month(addmonths(makedate(Max(Year),max(Month1),1),-1)))}>}Month)

vikasmahajan

check this

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II
Author

Hi Sasidhar,

I m not asking Days Count.There my field Tic_No.Your Expression is working only for days Count.Please Correct it.

sasiparupudi1
Master III
Master III

Try

=sum({<Month1={$(=Month(addmonths(makedate(Max(Year),max(Month1),1),-1)))}>}Tic_No)

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Current Month:

=Count({<Year=, Month1=, Month={'>=$(=MonthStart(Max(Month)))<=$(=Date(Max(Month)))'}>}Tic_No)

Previous Month:

=Count({<Year=, Month1=, Month={'>=$(=MonthStart(Max(Month), -1))<=$(=MonthEnd(Max(Month), -1))'}>}Tic_No)

Hope this helps you.

Regards,

jagan.

qlikviewwizard
Master II
Master II

Hi Nagarjuna,

Please select correct and helpful answers and close the thread. Thank you.

jagan
Partner - Champion III
Partner - Champion III

Hi Nagarjuna,

Did you checked SasiParupudi1‌expression for 2016 January for Previous month expression?  It won't return correct numbers.

Instead check with below expression for same scenario

=Count({<Year=, Month1=, Month={'>=$(=MonthStart(Max(Month), -1))<=$(=MonthEnd(Max(Month), -1))'}>}Tic_No)


Hope this helps you.


Regards,

Jagan.

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II
Author

Thankq Jagan 🙂