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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

AGGR()

Hi my name is Andrea,

I would like to understand how to solve this issue.

CategorySupplierPurchaseTot PurchasePurchase %
1A1000600016%
1B2000600034%
1C3000600050%
Tot6000100%
2D1000300033%
2E2000300067%
Tot3000

100%

If i use this formula: aggr(NODISTINCT sum(Purchase),Category) i can get the column "Tot Purchase" and "Purchase %" as in the table. But if i click on a supplier (for example supplier A) the Tot Purchase becomes 1000 and Purchase % becomes 100%.

Is there any solution for this issue?

I would like to click on a supplier and mantain the same result.

Thanks to all in advanced.

Andrea

Labels (1)
13 Replies
Anonymous
Not applicable
Author

Thanks for the answer.....this comumunity is awesome!

I Will try this solution as soon as i can.

Could you please explain me the difference in using <category > and {<category>} ?

sunny_talwar

<category> is used with TOTAL qualifier to tell the expression that the Total need to be calculated for each category.

{<category>} is a set analysis syntax(similar to {<category =>} used to ignore selections in category field.

Anonymous
Not applicable
Author

Hi at the end i use this: 


fractile(total <Categoria> {<[Ragione sociale]>} Aggr(Sum({<[Ragione sociale]>}Acquistato)/Sum(TOTAL <Categoria> {<[Ragione sociale]>} Acquistato), Categoria,[Ragione sociale]),0.25)

 

Where:


Categoria = Category

Ragione sociale = Supplier

Acquistato = Purchase


It's look like good because now when i select a supplier the relative fractile is correct 

sunny_talwar

Awesome, I am glad you were able to figure it out .

If you got everything you were looking for, I would ask you to close this thread by marking correct and helpful responses.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny