Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

total in qlikview

Hello all,

Can you explain me how qlikview calculate the total in the field "Variation %" ?

PRIMARY_ASSET_CLASSOverall StatusNumber of DealsAverage Monthly DealsVariationVariation %
4.090845,99144,9881,0034.0908
InterestRate0.003716,34816,287610.0037
ForeignExchange0.048919,66018,7449160.0489
Commodity0.00305,2075,191160.0030
Equity0.00653,2673,246210.0065
Credit0.00711,5091,520-110.0071

The value 4.0908 is wrong the correct value is 0.02272   ----> 1003/44988
for information i calculate the field "Variation %"like this  :  =(fabs([Variation]))/[Average Monthly Deals]

fabs : absolute value

Thanks in advance ,

Regards,

4 Replies
hic
Former Employee
Former Employee

It depends on how your Variation and Average Monthly Deals are defined. QlikView does not just calculate it like Excel. Instead it uses the original formulas on the entire data scope.

HIC

PS Could it just be a simple typo? Your Variation % happens to be identical to your Overall Status.

vishsaggi
Champion III
Champion III

Is this what you are looking for??

PFA the sample report based on your data. But according to HIC it does not calculate like excel which is true.

However, let us know if this works out for you.

Thanks,
V.

Not applicable
Author

Hello Henric,

Thanks for your answer. My variables are calculated like this  :

Number of Deals = Count

( {1<[Application date]={$(vMaxDate)}, DealSent={1}>} Distinct RowNo_VIP_REP_EXT_TRADE_POS)

Average Monthly Deals =

Avg({1} aggr(Count( {1<[Application date]={">=$(vMinDate)<$(vMaxDate)"}, DealSent={1}>} Distinct RowNo_VIP_REP_EXT_TRADE_POS),PRIMARY_ASSET_CLASS,[Application date]))

  Variation =

[Number of Deals]-[Average Monthly Deals]

 

Variation %

=(

fabs([Variation]))/[Average Monthly Deals] 

Thanks

Not applicable
Author


Hello vishsaggi,

Your example works good for me. i have given the expression of variable that i have used.

Thanks