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

How to show current month and previous in the same table with month as a dimension

Hi,

I want to show Current month Sales and previous month sales with the month as a dimension..

Its Urgent...

Please provide ur solution ASAP.

12 Replies
sunny_talwar

Check this:

=If(Sum(Act_Amt) > 0, If(Num(Month) > 1, Before(Sum({<Month, [Month Year], Date, Year>}Act_Amt)), After(Sum({<Month, [Month Year], Date, Year>}Act_Amt), 11)))

kavita25
Partner - Specialist
Partner - Specialist
Author

Thanks a lot..Sunny..

Really appreciate ur help.....

It worked..

kavita25
Partner - Specialist
Partner - Specialist
Author

Hello Sunny..

How will I restrict data for current month & previous two months for the same table.

Plzz..help me with this.

Regards,

Kavita