Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Aggregation or something like it?

Hi

I'm trying to do something fairly straightforward, but have become stuck.

Given a selection of Funds and Periods for a specific Date, I want the total number of Funds in each Category that the Fund belongs to (for each Period) so that I can calculate whether the Fund is within a certain quartile.

For clarity, there are about 31 categories, and each has multiple funds. I am only interested in some of those funds, hence the selection, but the Count of all the funds in the category corresponding to each of the selected funds is important.

I think the problem is related to me selecting the funds of interest, which excludes all the other funds.

You will see that the first Pivot has the Rank of the Funds selected, but this is from my data and is not calculated.

Please mess with the second Pivot to get me the required result, for example, STANLIB MM Balanced A  should be 69 out of 111 for 3 Months. I need the 111, so that when I divide 69 by it, I can calculated that it is in the bottom half.

Thank you for any help.

Joao.

3 Replies
swuehl
MVP
MVP

Maybe like attached?

Anonymous
Not applicable
Author

Ok, I've had partial success (see below), by doing the following:

Rank/aggr(max({1} Rank),ASISACategory,Period,ReturnDate)

Unfortunately, because some of the Funds below belong to the same ASISACategory, it only works for the first Fund in each category.

Does anyone know how to resolve this?

FundName Period 3 Month6 Month1 Year3 Years5 Years
STANLIB MM Absolute Income A0.800.820.60
STANLIB MM All Stars Eq FoF A0.200.290.270.200.20
STANLIB MM Balanced A0.620.590.450.370.58
STANLIB MM Equity A1
STANLIB MM Flex Property A0.420.750.040.130.06
STANLIB MM Global Equity FF R0.800.710.300.550.65
STANLIB MM Inflation Plus 1 FoF A0.790.890.860.91
STANLIB MM Inflation Plus 3 FoF A
STANLIB MM Inflation Plus 5 FoF A
STANLIB MM Low Equity FoF A0.640.640.640.640.50
STANLIB MM Med Equity FoF A0.35
STANLIB MM Property A0.650.760.700.330.41
STANLIB MM Real Return A
Anonymous
Not applicable
Author

Hi Swuehl

This is not what I was looking for. Apologies for the poor explanation.

I've ended up doing it in a script in my database instead.

Thanks.

Joao.