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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating division in Set Analysis

Hopefully this will be a real easy one for somebody...

I am trying to calculate % variance using the following formulas;

(Actual - Budget) / Budget

or

1- (Actual/Budget)

e.g.

ActualBudget
2827512872001.55%


However when i build these as expressions in QV i do not get the result i was expecting.

Here is my code

Would appreciate somebody having a look!

Cheers

Rob






2 Replies
Not applicable
Author



Sorry here is my code;

=1-(sum({$<Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}>} Act)/2

/

sum({$<Costcategory={Invoiced, [EYP], [Milk Grants], [Other Income]}>} Bud)/2)

Miguel_Angel_Baeyens

Hello Rob,

First, unfortunately your code is not posted. Anyway, you can create a new expression, having already both Actual and Budgest as labels for two expressions like

=([Actual] - [Budget]) / [Budget]
This should work.