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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Variance (Expenses, Income)

Hi

Please suggest me a set expression for variance calculation as per the data highlighted below. 1st data refers to variance of expenses between Months whereas 2nd one refers to variance of income between two Years!

Regds

Neville

 

EXPENSES
MONTHACTBUDGETVARIANCE (ACT Vs BUDGET)
JAN500030002000
FEB40005000-1000
MAR300030000
INCOME
MONTHACT-CYACY-LYVARIANCE (CY Vs LY)
JAN750010000-2500
FEB1000011000-1000
MAR500040001000
3 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

What is you want to do specifically Neville? Could you explain a little more?


Compare two years variance with current year?

Felipe.

nevilledhamsiri
Specialist
Specialist
Author

Dear Felip,

1st the difference between ACT to Budget, 2nd , CY vs Ly after that the difference created against the LY in both cases separately.

Rgds

Neville

prma7799
Master III
Master III

for Expense

1st Expression (ACT)

(SUM({$<FinancialYear=,MonthName=,Quarter=,FiscalYear={$(=max(FiscalYear))}

,[Date]={">=$(=MonthStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Date]))"}

>}[Actual])

2nd Expression(Budget)

(SUM({$<FinancialYear=,MonthName=,Quarter=,FiscalYear={$(=max(FiscalYear))}

,[Date]={">=$(=MonthStart(max({$<FiscalYear={$(=max(FiscalYear))}>}[Date])))<=$(=max({$<FiscalYear={$(=max(FiscalYear))}>}[Date]))"}

>}Budget)

)

3rd Expression (variance)

Column(1)-Column(2)