Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
rsimson1
New 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

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

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
MVP
MVP

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

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)

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

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