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

Aggregation function

Hi,

Below is my requirement. Could some one please help me? since yesterday I am trying for it.

Expression - sum(EAD)

Ex

We need to group the data by CSAID and PARENT(Dimensions)

Total Dimensions in my pivot table/data like below

CrispName      Parent      CSAID   Period:  P0   P1   P2   P3

Citi Bank N    Citi            0                        100 10    20    3

Citi Bank PP  Citi            0                          2    3     5    8

Citi Bank TT   Citi            5                         1     10    55  88

Result like:

CrispName      Parent      CSAID   Period:    P0     P1   P2   P3

Citi Bank N    Citi            0                        102     13    25   11

Citi Bank TT   Citi            5                         1       10    55  88

Here Parent and CSAID should be unique.


1 Solution

Accepted Solutions
rubenmarin

Hi Priya, you can change the first dimension to:

=Aggr(Minstring(CrispName), CSAID, Parent)

If you don't want the first alphabetical name, change MinString(CrispName) for the expression you need to select the correct name.

View solution in original post

4 Replies
giakoum
Partner - Master II
Partner - Master II

how do you determine which CrispName to use?

Citi Bank N or Citi Bank PP

rubenmarin

Hi Priya, you can change the first dimension to:

=Aggr(Minstring(CrispName), CSAID, Parent)

If you don't want the first alphabetical name, change MinString(CrispName) for the expression you need to select the correct name.

priyarane
Specialist
Specialist
Author

Hi Ioannis,

What ever name not a problem. If it is longest name then good.

priyarane
Specialist
Specialist
Author

RUBEN really Thank You.