Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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
senpradip007
Specialist III
Specialist III

Sample app would be help you better.

Anonymous
Not applicable

What issue you are facing?

Chanty4u
MVP
MVP

what error ur getting?  expression seem correct

nareshthavidishetty
Creator III
Creator III
Author

When we doing MOM for 2015 and 2016 for FEB-2015 no of days = 28 for 2016 no of days = 29 here i need to compare dynamically. with in one chart

Anonymous
Not applicable

Define a month sequence number in your calendar at script like:

     Year * 12 + Month  as MonthNumber (where Year and Month are the respective fields from your calendar)

Then month on month would look something like:

Sum({<MonthNumber ={"$(=Max(MonthNumber ))"}>} Amount)       //For max month

Sum({<MonthNumber ={"$(=Max(MonthNumber )-12)"}>} Amount)   // For Max same month but last year

nareshthavidishetty
Creator III
Creator III
Author

Ok let me do this and will get back.

Thanks..

jagan
Luminary Alumni
Luminary Alumni

HI,

Check this links below

Set Analysis for certain Point in Time

Set Analysis for Rolling Periods

Current Month:

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


Previous Month:

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

Hope this helps you.

Regards,

Jagan.

nareshthavidishetty
Creator III
Creator III
Author

Hi Jagan,

I need to compare 2016 vs 2015 mom like 2016 feb vs 2015 feb