Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to get the previous month count, as per attached example need the previous month (Mar’15) count in current month (Apr’16) for the same department
Please Help. Thanks in advance
Please see attached
May be used Above() function or use As-OfTable in the script: The As-Of Table
Hi Ashok,
could you please check for Accumulation is Same?
else you need follow Sunny advice.
Hi Sunny. Thanks for your quick reply.
I tried to using above function but for the first month my results shows 0. Please advice as i am new to qlikview.
Can you share formula used for May month, as it is showing previous month count, March month might not be under current selection values so it should read beyond current selection through different ways as suggested above.
Please see the used below expression for previous count
if(Month='Apr',
sum(aggr(count({$<Active_Flag = {1},Cal_Year = {'$(vPrev_Year)'},Cal_Year_Flag = {1},Cal_Month =>}Distinct [Employee Code]),Department)),
sum(aggr(above(Count({<Cal_Month_Flag = {1},Cal_Year = {'$(vMax_Year)'},Active_Flag= {1}>}Distinct [Employee Code])),Department,Month)))
Would you be able to share the application you are working with?
Please find the attached working application. Please check and advise. !
Give this a shot
This?
Expression:
If([Current Active] > 0,
RangeSum(above(Count({<Cal_Month_Flag = {1},Cal_Year = {'$(vMax_Year)'},[Active Flag DayWise] = {1}>}Distinct [Employee Code])),Department,Cal_Month))