Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

comparison of current month vs previous year same month data

Hi all,

I want to create a straight table for comparison of current month vs previous year same month data as given below:

 

MonthClaimsApproved Claims
CYTD100002000
PYTD80001000

Any help with this is appreciated.

Thanks in Adavance

Anupama Jagan

P.S.

Attached sample data

The requirement is to get a table like below: For eg : current month is apr so the table should like this

MonthClaimsApproved Claims
Apr 2017100002000
Apr 201680001000
23 Replies
MK_QSL
MVP
MVP

Provide sample data or app to work..

ahaahaaha
Partner - Master
Partner - Master

Hi,

may be as attached file.

Regards,

Andrey

Anonymous
Not applicable
Author

Anupama,

Can you provide sample data?/ And do you want the table should be exactly like above??

Anonymous
Not applicable
Author

Hi,

You can create two calendars in your data model.

if you can provide a sample date, it will be easier to help you

buzzy996
Master II
Master II

try tis way,

=sum({$<Year={$(=Max(Year))},Month={"<=$(=max(Month))"}>}Sales)

=sum({$<Year={$(=Max(Year)-1)},Month={"<=$(=Month(Now()))"}>}Sales)

Anonymous
Not applicable
Author

Hi Shiva,

Yes this is the requirement. I will attach a sample data soon

Anonymous
Not applicable
Author

Hi All ,

I have now attached a sample data in the original post..

Thanks,

Anupama Jagan

Not applicable
Author

Hi ,

Month,Month_id

Jan 1

Feb 2

Mar 3

....

Dec 12

Create a Month_id  for the month field and use the following expressions in your straight table

=sum({<Crtd_Year={$(=Max(Crtd_Year)-1)}, Month_id={$(=max(Month_id))}>}Claims)

=sum({<Crtd_Year={$(=Max(Crtd_Year))},Month_id ={$(=max(Month_id))}>}Claims)

Regards,

Balakrishnan.R

Anonymous
Not applicable
Author

!I have added one row data in the data source in order to test my result.

Hope the example below will help you.