Hi Experts,
I have a data like below,
Name | Month | Amount |
xxx | 6 | 20000 |
yyy | 7 | 3000 |
zzz | 9 | 400 |
aaa | 5 | 10000 |
aaa | 4 | 3200 |
ccc | 5 | 100 |
In prompt, we need to give Month. If user enter month then report should show below details. For example, if user selecting month as 5
Expected Result
Month =5 | ||
Name | Current Month | Previous Month |
aaaa | 10000 | 3200 |
ccc | 100 | 0 |
I need to get name, current month(user selected Month) & Previous Month (5-1). I used < operator in prompt to get previous month data.
In report for previous month column, i used below formula
Previous month = amount where (Month=userresponse("Month:")-1). But am not getting above result. I am getting like below
Available Result
Name | Current Month | Previous Month |
---|---|---|
aaaa | 10000 | |
3200 | ||
ccc | 100 |
How to get both the values in same row ?