Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I need to show previous month amount on selecting the current month PFA
hi see attach example
you have to text boxes
1. current selection amount
2 . previous month amount
Your month field is empty. Correct the date format, and reload to get month properly, and re-upload sample qvw.
Hi Tresesco
PFA
Hi,
I go through your data,
You have many date for similar month,
So you want sale for same month date of previous month ??
or complete sale of previous month?
Regards,
Hi Max,
Here my date field is 'pstng date'. i need to show complete sale of previous month
See the attached sample.
Expression:
Sum({<month= , [Pstng Date]={">=$(= MonthStart(Addmonths(Max([Pstng Date]),-1)))<=$(= MonthEnd(Addmonths(Max([Pstng Date]),-1)))"}>}Amount)
hi see attach example
you have to text boxes
1. current selection amount
2 . previous month amount
Hi Liron/tresesco,
If you don't mine can you please explain the expression bco'z i don't get the use of add months over there
Thanks & Regards,
Nagaraj
Addmonths(Max([Pstng Date]),-1) ---- this takes you -1 month ahead, i.e. one month backward from the maximum date of [Psttng Date] possible.
MonthStart(Addmonths(Max([Pstng Date]),-1)) ---- further works on that one month earlier date. MonthStart() gives the starting date of that date which is one month earlier, effectively, it gives you the first date of the earlier month.
Thank'z for your response tresesco.., but wen i tried the expression by removing add months .. it's working fine