Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Set analysis MOM

Hi,

The chart expression used is

  • count({<AppStats={'Approved'}, Month={$(vMaxMonth)}, Year={$(vMax)}>}DISTINCT AppNUM)
  • count({<AppStats={'Approved'}, Month={$(vMaxMonth)}, Year={$(vPrev)}>}DISTINCT AppNUM)

where,

vMaxMonth = month(max(Rep_date)

vMax = max(year)=2016

vPrev=(max(year)-1 = 2015


I need to show month level comparison like am having 2015 and 2016 years and month filter.Am using Combo chart.


Thanks..

14 Replies
jagan
Luminary Alumni
Luminary Alumni

Try like this

Current Month:

Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=MonthStart(Max(Date)))<=$(=MonthEnd(Max(Date)))’}>} Sales)


Previous Year Same Month:

Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=MonthStart(Max(Date), -12))<=$(=MonthEnd(Max(Date), -12))’}>} Sales)


Hope this helps you.


Regards,

jagan.

Anonymous
Not applicable

Did you try what I suggested you?

PrashantSangle

Hi,

need little change in second expression suggested by JAgan

try below

Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=MonthStart(AddMonths(Max(Date),-12)))<=$(=MonthEnd(AddMonths(Max(Date), -12)))’}>} Sales)


or you can use addYears()

Sum({<Year=, Quarter=, Month=, Week=, Date={‘>=$(=MonthStart(AddYears(Max(Date),-1)))<=$(=MonthEnd(AddYears(Max(Date), -1)))’}>} Sales)


Regards



Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
nareshthavidishetty
Creator III
Creator III
Author

Thanks to all the issue got resolved.

Anonymous
Not applicable

Dont forget to close this thread by selecting correct/helpful answer