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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month-on-Month comparison

Hi,

I would like to calculate the Month-on-Month variant in the pivot table I created.

How should I go ahead doing this?

14 Replies
Not applicable
Author

Yes,

and also the change in Feb 2014 to Feb2015 as the Y-o-Y change.

kamalqlik
Partner - Specialist
Partner - Specialist

Hi Gerald,

Use this function

Floor(Monthstart(Date ))  as MonthYear and upload the QVW again.

I will provide you the solution.

Regards

Kamal


kamalqlik
Partner - Specialist
Partner - Specialist

Hi Gerald,

I was waiting for your reply...

I am mentioning the point that you have to do in your QVW.

1) Make a filed MonthYear at backend as

Floor(Monthstart([DATE REPORTED]))  as [MonthYear]

2)Reload the Application

3) Make an variable for this year MaxDate ie Feb2015

vMaxMonth= Floor(num(Max( [MonthYear])))  for Feb 2015

vMaxMonthLastYear   =Floor(num(AddMonths( Max([Month Year]),-12)))

 

Than add two expression one for this year and one for last Year

Expression 1)  Count({<[MonthYear]={$(vMaxMonth)}>}[Claim No]).... This will give data for feb2015

Expression 2)   Count({<[MonthYear]={$(vMaxMonthLastYear)}>}[Claim No])..... This will give data for feb 2014.

I hope it will help you.

Regards

Kamal


Not applicable
Author

Here  is the reloaded attachment with changes made.

Not applicable
Author

Attached I have added the results that I am trying to show, but done in excel.

see last two columns, highlighted in yellow.