Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bhorneber
Luminary Alumni
Luminary Alumni

Elimination of Internal Business Volume

Hi,

I would like to eliminate internal business volume, when aggregating volume within a hierarchy.

As an example, let's assume this data set:

Sales RegionSellerBuyerVolume
CAFactory_CAFactory_US10
CAFactory_CACustomer40
DEFactory_DEFactory_US20
DEFactory_DECustomer50
USFactory_USCustomer200

With this regional hierarchy:

CountryContinentWorld
CANorth AmericaWorld
DEEuropeWorld
USNorth AmericaWorld

Summing the data up by sales region to calculate the sales would result in a total of 320 globally (QlikView standard).

But, as some of the sales happens internal and have to be ignored when showing continents or the world, the consolidated sales figures are slightly different. 290 in this case:   

RegionSalesSales
(consolidated)
    DE7070
  Europe7070
    CA5050
    US200200
  North America250240
World320290

I would appreciate any ideas on how to achieve this form of data consolidation best in QlikView.

As this is kind of a common thing to do in income statement, maybe there are already papers out there ... unfortunately I couldn't find any.

Thanks a lot!

4 Replies
Nicole-Smith

You should be able to do it using set analysis.  Please see the attached example.

sum({<Buyer={'Customer'}>}Volume)

bhorneber
Luminary Alumni
Luminary Alumni
Author

That would work, if I am only interested in customer volume, but I am interested at the sales volume on each level.

From a CA perspective, that would be 50 (10 sales to the US, 40 to a customer), analog for DE.

Also for Europe, the sales volume would be 70.

Only on the World level the amount that DE sold to the US factory is being ignored.

Nicole-Smith

I'm not sure I fully understand the logic behind what you're trying to do.  Maybe someone else can chime in to help you...

bhorneber
Luminary Alumni
Luminary Alumni
Author

Let me try to elaborate - maybe that will help others too.

From a business point of view, let's assume an organization owns several factories. Those factories produce stuff that is sold to customers (external business). They also buy material from other factories (internal business).

In the above example, the factory in CA sold something for $40 to a customer and for $10 to the US factory.

So from Canada's factory perspective, their sales is $50.

The region head of North America is now interested in knowing the sales of the whole region. Although CA had $50 in sales and the US had $200 in sales, the total sales in this scenario is not $250, but $240. Because $10 were internal business.

Look at it from this point: If CA didn't sell something for $10, but for $1,000 and that would be added to the overall sales, it would totally misrepresent the business in North America.