Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

current month & prior month

gwassenaar

Hi,

I have to create a new message and upload my qvd file . FYI.

I have data in current month, but want to display data for prior month at same table...

Thanks

Jessica

1 Solution

Accepted Solutions
svenkita
Creator II
Creator II

I have made changes to the model and this takes the month in order of in which stock is available and shows the current month and previous month

Check the new Chart called "New"

Hope it helps

View solution in original post

8 Replies
satishkurra
Specialist II
Specialist II

Use the last month expression as below

sum({$<Year=,Month=,Date={'>=$(=monthstart(max(Date),-1))'}>}Stock)

sushil353
Master II
Master II

Hi,

Your expression looks correct. You are not getting previous month values because you don't have data for that.

svenkita
Creator II
Creator II

hi

I have created a data island out of the transaction data and on selection of a month on the island the formulas will compute the sum for selected month and pervious month.

Hope this helps

Attaching the sample

Not applicable
Author

Hi,

Last Month may not be the prior squence month, for example, currently it is July, 2015, our status is like ' the last month is March, 2015', since our business data is not existed in every month, it is empty in some of month. This is our case.

Thanks&Regards,

Jessica

Not applicable
Author

Orignial Data is :

Snap1.gif

Expected result:

Snap2.gif

Thanks&Rgs,

Jessica

svenkita
Creator II
Creator II

I have made changes to the model and this takes the month in order of in which stock is available and shows the current month and previous month

Check the new Chart called "New"

Hope it helps

Not applicable
Author

Hi Venkita,

Sorry, where i can check the new chart 'New' ?

Thx&Rgs,

Jessica

svenkita
Creator II
Creator II

if you open the qlikview file

it is on the CM_LM Sheet