Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue with Above function

Hi All,

I need help on below issue where we need data as per below logic

MOM % = (Current month - Previous Month / Previous Month)

Formula: =(Current month – previous month)/previous month%

Month

Bookings

Margin %

Funnel Weighted

Funnel Unweighted

M-O-M %

Y-O-Y%

Jan

10

10

Feb

15

50%

Mar

25

67%

Apr

30

20%

May

10

-67%

for this when we are using below formaulae we are receving July month data which actually we should not be there aswe are in June

=if(Month = 'Jan',sum({<Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate),


(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate))

-

(Above(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate)))

/

(Above(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate))))

 

jan18736
feb18417
mar36099
april31215
may24317
jun7160
jul100

Thanks in Advance!

Timba!

1 Reply
sunny_talwar

May be this:

=if(Month = 'Jan',sum({<Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate),

If(Above(Sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}, Stage={'S'}, [Interco Flag]={'External'}>}[Booking Amount Euros] * Rate)) > 0,


(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate))

-

(Above(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate)))

/

(Above(sum({<vCalendar = {">=$(=MonthStart(Today()))<= $(=MonthEnd(Today()-1))"}

,Stage={'S'},[Interco Flag]={'External'}>}[Booking Amount Euros]* Rate)))))