Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
venkatbza
Creator
Creator

how to show the previous month last day Sales as current month Starting day Sales

Hi Friends,

I am facing a problem to get the previous month last day sales as current month Starting Sales

i nee to show the data in straight table like mentioned below.

Start values should be the last day sales of the previous month. i have tried to implement with Below() function  it is given the below value for the upper column but the problem is if i select 2017 in a list box Jan-2017 start should show the Dec-2016, but is it is showing Null may be technically it is belong to 2016 but i need to show that in 2017 Jan staring sales.

help if any one have the answer.

Desired Output:-

Month YearStartsalesExpansesMonth end or Till date
Jun-201712520-15130
May-201712210-7125
Apr-201711515-8122
Mar-201710520-10115
Feb-20179910-4105
Jan-20171005-699
Dec-201611010-20100
Nov-20160120-10110

Current output:-

Month YearStartsalesExpansesMonth end or Till date
Jun-201713020-15130
May-201712510-7125
Apr-201712215-8122
Mar-201711520-10115
Feb-201710510-4105
Jan-2017995-699
Dec-201610010-20100
Nov-20160120-10110

Thanks,

Venkat

9 Replies
Anil_Babu_Samineni

From given data, If you select the Feb-2017 then what does the output come?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
venkatbza
Creator
Creator
Author

Hi Anil,

If i select Feb-2017 in the filter now it is showing 0 in my qlikview report. but it needs to show END of the Jan value 99.

i would like to show the data like give table in qlikview.

Anil_Babu_Samineni

Like this? when we are select Feb-2017

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
venkatbza
Creator
Creator
Author

Hi Anil,

Sorry to confuse you.

Like below

What ever i posted in the question that is required out put.

Capture.PNG

Anil_Babu_Samineni

May be this? Hope this helps

I've changed

Sum({<[Month Year] = {"$(=Date(Max([Month Year]-1),'MMM YYYY'))"}>} [Month end or Till date])

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
venkatbza
Creator
Creator
Author

Thanks for your reply Anil.

But this is not what i am expecting.

Month year is only my dimension in the chart, remaining all are expressions. like below.

sum (start ) ---for sum of start we derived from last day sales of last month

sum (sales )

sum (Expanses)

and how month end or till date are calculate is (sum (start )+sum (sales )-sum (Expanses))

for sum of start we derived from last day sales of last month

for instance:-


My December-2016 sales is like below table. in the below table start 110 is derived from last day of Nov-2016

And sales is sum of Dec-2016 sales, and Expanse is sum of Dec-2016 Expanses.

what ever the end of Dec-2016(Month end or till date) sales should be the start of Jan-2017 and + Jan sales - Expanses should be the month end or till date sales.

i am able to find the logic for Month end or till date. but unable to find the solution for start.


Month YearStartSalesExpanses
Month end or till date balance
Dec-201611010-20100
Nov-20160120-10110

Month YearStartSalesExpansesMonth end or till date balance
Jan-20161005-699

Thanks,

Venkat

venkatbza
Creator
Creator
Author

Thanks for your reply Anil.

But this is not what i am expecting.

Month year is only my dimension in the chart, remaining all are expressions. like below.

sum (start ) ---for sum of start we derived from last day sales of last month

sum (sales )

sum (Expanses)

and how month end or till date are calculate is (sum (start )+sum (sales )-sum (Expanses))

for sum of start we derived from last day sales of last month

for instance:-


My December-2016 sales is like below table. in the below table start 110 is derived from last day of Nov-2016

And sales is sum of Dec-2016 sales, and Expanse is sum of Dec-2016 Expanses.

what ever the end of Dec-2016(Month end or till date) sales should be the start of Jan-2017 and + Jan sales - Expanses should be the month end or till date sales.

i am able to find the logic for Month end or till date. but unable to find the solution for start.


Month YearStartSalesExpanses
Month end or till date balance
Dec-201611010-20100
Nov-20160120-10110

Month YearStartSalesExpansesMonth end or till date balance
Jan-20171005-699

Thanks,

Venkat

Anil_Babu_Samineni

I am out of range now. Let's wait mrkachhiaimp his response

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MK_QSL
MVP
MVP

I usually don't work on questions without sample data or sample application.

venkatbzaPlease provide sample data according to your application and requirements.