Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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)))))