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

How to show dimension with 'random' description?

Hi All,

I have a simple question, but I can't figure it out.

I have the following data

Code, Description, Amount

10,   Description10,           100

10,   Desription10,             200

20,   Description 20,          300

20,   DESCRIPTION 20,  400

Now I have a simple table with dimension 'Code' and expression SUM(Amount)

So far so good

Now I don't want to only display the Code, but also one of the descriptions. As you can see there are typos in the source data (desription instead of description). So when My dimension is Code and the second dimension is Description, than I have 4 rows instead of 2.

I want to group on Code and display one of the descriptions behind the code within that dimension.

I tried as dimension AGGR(Description,Code) but that doesn't work.

Thanks for helping.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try AGGR(MaxString(Description),Code)


Or if you already use Code as dimension use an expression MaxString(Description) instead of using a calculating dimension


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try AGGR(MaxString(Description),Code)


Or if you already use Code as dimension use an expression MaxString(Description) instead of using a calculating dimension


talk is cheap, supply exceeds demand
heij1421
Partner - Creator
Partner - Creator
Author

Thanks Gysbert. The maxstring did the trick!