Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rsimson1
Contributor II
Contributor II

Straight Table with staff names and values - Want staff name only listed once with all the associated values

Hi,


I want to change the attached table so that it only list all the names of people and values form the expressions in one line. The main issue seems to be with AWARD_CATEGORY which needs to be in the table but can have 3 possible values EMA, A, B, and null values. How can I keep that information in my table (possible displayed in adjacent columns) against a single name for a person but add these values together so that their is only one line per person with expression totals for all values.


It would look something like this(Yellow moving to Green so that it will appear on a single line), the null and B values for George appearing on a single line. I have attached the QlikView file and underlying data in an excel file. I hope someone can point me in the right direction.



Test-1.png

1 Solution

Accepted Solutions
sunny_talwar

Looking to get this?

Capture.PNG

Added three expressions

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'EMA'}>}AA_AWARDCATEGORY)

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'A'}>}AA_AWARDCATEGORY)

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'B'}>}AA_AWARDCATEGORY)

Not sure if you still need the other dimensions which I have removed, but take a look at the attached file

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Add this line in your script

     AutoNumber([AA_ STUDENT_ID]& AA_AWARDCATEGORY) AS ID,

Now use below expressions

FirstSortedValue(AA_AWARDCATEGORY,ID)

FirstSortedValue(AA_AWARDCATEGORY,ID,2)

FirstSortedValue(AA_AWARDCATEGORY,ID,3)

SUM(AWARD_VALUE)

sunny_talwar

Looking to get this?

Capture.PNG

Added three expressions

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'EMA'}>}AA_AWARDCATEGORY)

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'A'}>}AA_AWARDCATEGORY)

Only({$<F_NAME = {'Bursary'}, AA_AWARDCATEGORY = {'B'}>}AA_AWARDCATEGORY)

Not sure if you still need the other dimensions which I have removed, but take a look at the attached file