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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Referring from aggr() to ValueList() value

Hello community,

I tried to mix synthetic dimensions (Valuelist()) with calculated dimensions within a pivot,

but it doesn't work as I supposed.

LOAD * INLINE [
F1, F2
A, 1
A, 2
A, 3
B, 10
B, 20
B, 30
]
;

result:

expected result:

I think with the help of this construct, outstanding pivot solutions would be possible.

Regards

Robin

1 Solution

Accepted Solutions
sunny_talwar

ValueList() cannot be used as an aggr() function's dimension.... try may be with an island table

Capture.PNG

LOAD * INLINE [

    F1, F2

    A, 1

    A, 2

    A, 3

    B, 10

    B, 20

    B, 30

];

Dim:

LOAD * Inline [

Dim

D1

D2

];

and then your 2nd and 3rd dimensions will be:

Dim

=if(Dim = 'D1', 'X','Y')

Expression

If(Dim='D1', Sum(F2), RangeSum(Sum(F2),1))

View solution in original post

3 Replies
sunny_talwar

ValueList() cannot be used as an aggr() function's dimension.... try may be with an island table

Capture.PNG

LOAD * INLINE [

    F1, F2

    A, 1

    A, 2

    A, 3

    B, 10

    B, 20

    B, 30

];

Dim:

LOAD * Inline [

Dim

D1

D2

];

and then your 2nd and 3rd dimensions will be:

Dim

=if(Dim = 'D1', 'X','Y')

Expression

If(Dim='D1', Sum(F2), RangeSum(Sum(F2),1))

swuehl
MVP
MVP

I think calculated dimensions are not possible with aggr() function.

Maybe you can use a data island field instead.2017-02-04 13_14_47-QlikView x64 - [C__Users_Stefan_Downloads_valuelist vs. aggr()_2.qvw].png

Anonymous
Not applicable
Author

Thank you for your answers, that's really a pity.