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

Calculated Items and non-calculated Items

Dear Ladies and Gentlemen,

I've got a problem in combining calculated and non-calculated items.

Here is my example:

Productgroup
ProductUnitsSales Order Price
PCA1343634
PCA217634622
ServerK3231232351
Server-FarmSSSSE152233
Server Farmsssxx345362737

For PC and Server no calculations are needed. But for Server-Farm the Price is not only the Server-Farm Price but in additionen

the Ratio of PC/Server for specific Products. So it would be ServerFarm=ServerFarm + Serverfarm* (Pc Type A2/Server Type K8).

This ratio is different if it's based on a specific Country and different it it's on a specfic Region (APAC, EMEA, NA etc..)


When I add a formula in the chart and select Server Farm, my calcuation disapears.

How can solve this problem, applying to the ProductGroup a calcuated Product Group which replaced the old one?

Thank you for your help.

2 Replies
Anonymous
Not applicable
Author

I think you can solve this by using an IF() in your calculation.

Somthing like:

IF(Productgroup= PC, (ExpressionA) ,

IF(Productgroup= Server, (ExpressionA),

IF(Productgroup= 'Server-Farm', (ExpressionB)

)))

or

IF(Productgroup <>'Server-Farm', (ExpressionA) , (ExpressionB) )

Let me know if this works for you.

Not applicable
Author

Dear Dennis,

thank you for your help so far, but it does not work.

The Expression for the Servers is an AGGR:

(sum(aggr((sum({<[Main Article Group]={'PC}>}[cpa_Net Value]*CurrencyRate)/

sum({<[Productnumber]={'Server A2, Server K4, Server B2, Server H4, Servfer I6'}>}[cpa_Net Value]*CurrencyRate)*

sum({<[Main_Article Group]={''}>}[cpa_Net Value]*CurrencyRate)),[Geo 4],[Fiscal Month Name],[Fiscal Year]))),

For the rest, it's just a sum().

The Caculation of does not show the right result in this apporach with IF - Statements.

The AGGR Function is correct, I've tested many times.