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: 
Not applicable

Need help with getting the previous month data

Please see the attached sample. I have a table that has the following fields.

Department,

AccountNumber,

ReportMonth,

Premium,

Dropped,

TotalDCN

I am trying to calculate previous month (DCN and Dropped). The table has two months april and may. I am using may as the current month. The DCN %calculation is (sum(totalDCN)/ sum(premium) and for Dropped % it is (sum(Drop)/sum(Premium).

I want to be be able to select a month and get the DCN% for that month as the current and for the previous to be able to peek and look at the value for the previous month and do the calculation.

For Current Month Only NTK Premium, the value is the sum of the Dropped field where that account number is not in the previous month data. 

Can someone help with this.

CaptureCurrent.JPG

1 Solution

Accepted Solutions
cesaraccardi
Specialist
Specialist

Hi, here is a suggestion attached.

View solution in original post

2 Replies
cesaraccardi
Specialist
Specialist

Hi, here is a suggestion attached.

Not applicable
Author

it worked, thanks