Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Qlik Experts,
I need the difference between the count of EP for march 2018 and feb 2018. The month field is already coming from my database. how can i write an expression in the straight table to achieve this ?
Thanks in advance
Hey,
it depends how you get the data. Do you get some additional data fields from which Month is being generated? Or you just have plain text months provided in one column?
In your data, you have direct months only in DB OR you are generating month from date field.
1. If you have direct month data and if sequence is proper, then use this :
=If(RowNo() = 1, 0,[EP Scanned] - Above([EP Scanned]]))
2. If you have date field in data then extract that field and use this:
=sum(if(dates>=MonthStart(today()) and dates <=MonthEnd(today()),[EP Scanned] ))
-
sum(if(dates>=MonthStart(Addmonths(today(),-1)) and dates <=MonthEnd(Addmonths(today(),-1)),[EP Scanned] ))
Regards
Shubham