Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Happy new year to everyone!!!!!
I have req. as below and I need some help in this.
I have certain fields like Product,number,values,id,date,cal_month fields.
I need to calculate the MTD and LTD formulae’s with respect selection and without selection in front end level.
Plz find the attached sample data and I am unable to attach the original data.
Thanks in advance,
Ravi
Hi,
Please check attached.
Hope this helps.
Regards,
Aadil
Hi
You can try this, Hope it will helpful for you..
LTD:
= sum({< Revenue_Date= {">=$(=Date(YearStart(min(Revenue_Date))))<=$(=max(Revenue_Date))" }>}GrossRevenue)
MTD:
= sum({<Revenue_Date= {">=$(=Date(MonthStart(Max(Revenue_Date))))<=$(=max(Revenue_Date))" }>}
GrossRevenue)
- Regards,
Vishal Waghole
Create a variable
vMonth = Max(Date); where Date is your calender date
For LTD,
count({$<Set Analysis if anything you have>}if (InMonthToDate ( Revenue_Date, '$(vMonth)', 0), CallID))
For MTD:
vMonthEnd= date(floor(monthend('$(vMonth)')), 'DD/MM/YYYY')
count
({$<Set Analysis if anything you have>}if (InMonthToDate ( Revenue_Date, '$(vMonthEnd)', 0), CallID))
Hi,
You may find these examples helpful for prior period comparison using Set Analysis:
http://community.qlik.com/docs/DOC-4313
http://community.qlik.com/docs/DOC-4321
- Steve