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

Speeding up aggr

A kpi with a complex aggr (averaging 10,000,000 detail rows over customer, region).

The customer and sales date are in dimension tables and the sales amount is in a central fact table.

I've thought about creating an autonumber for the customer and sales date.

Would aggr run faster if it was using numerical dimensions rather than string?

What impact do large tables have on aggr?  If the customer table was 50 fields and the fact table had 100 measures.

If the aggr was using in a calculation, would variables help instead of having complex expressions?

4 Replies
vinieme12
Champion III
Champion III

where are you using AGGR()   , straight table or Textbox?

have you considered aggregating the measure during load, instead of front end?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
markp201
Creator III
Creator III
Author

textbox (kpi).

I see - something like this?

AggrTable:

SELECT autonumber(customer&region,'aggrkey') as aggrkey,sum(salesamount)

RESIDENT

  facts

Add this to the fact

autonumber(customer&region,'aggrkey') as aggrkey

MK_QSL
MVP
MVP

AggrTable:

SELECT autonumber(customer&region,'aggrkey') as aggrkey,sum(salesamount)

RESIDENT facts

Group By customer, region;

autonumber will help you to reduce the space of your application.

markp201
Creator III
Creator III
Author

In a dimensional mode, the customer and region are in their respective tables.  I think you would need a join clause for the group by, correct?