Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create Straight Table

Hi All,

I have the following data,Based on this data can we prepare Straight table like this

My Data:-

Empid    Grade    Subject  Score

1001        A          English    76

1001        A          Matha      52

1001        A          Science  38

1102        B          English    34

1102        B          Matha      55

1102        B          Science      36

1002        B          English    54

1002        B          Matha      35

1002        B          Science      40

1101        A          English    86

1101        A          Matha      42

1101        A          Science  58


Output:

Grade    Score_Status    Average_Score    Employee_Count

A            Y                    59.1                      2

B            N                    42.3                      2


--I want to Grade,Score_Status are Dimensions and Average_Score,Employee_Count are Expression.


Here Score_Status is if(avg(Score)<=50,'N','Y'))


Regards

Sharath


11 Replies
petter
Partner - Champion III
Partner - Champion III

Yes it is very straight forward actually:

2015-08-24 #2.PNG

Not applicable
Author

Hi Petter,

Please send Score_Status script to me

Not applicable
Author

Please send script for all Coloumns.

qlikviewwizard
Master II
Master II

Hi,

Please check this.

Thank you.

Capture.JPG

Not applicable
Author

Hi,

i am using Qlikview personal edition. i can't open your QVW. Please tell the process steps..here

petter
Partner - Champion III
Partner - Champion III

The dimension is simply the field Grade

The expressions are:

Score_Status:

If( Average_Score <= 50,'N','Y')

Average_Score:

Avg(Score)

Employee_Count:

Count(DISTINCT Empid)

petter
Partner - Champion III
Partner - Champion III

The load script is:

Data:

LOAD * INLINE [

Empid|Grade|Subject|Score

1001|A|English|76

1001|A|Matha|52

1001|A|Science|38

1102|B|English|34

1102|B|Matha|55

1102|B|Science|36

1002|B|English|54

1002|B|Matha|35

1002|B|Science|40

1101|A|English|86

1101|A|Matha|42

1101|A|Science|58

] (delimiter is |);

Anonymous
Not applicable
Author

Hi Sharath,

Please try:

script:

MyData:

LOAD * Inline

[

Empid,Grade,Subject,Score

1001,A,English,76

1001,A,Matha,52

1001,A,Science,38

1102,B,English,34

1102,B,Matha,55

1102,B,Science,36

1002,B,English,54

1002,B,Matha,35

1002,B,Science,40

1101,A,English,86

1101,A,Matha,42

1101,A,Science,58

];

left join(MyData)

LOAD Empid,Grade, if(avg(Score)<=50,'N','Y') as Score_Status

Resident MyData

Group by Empid, Grade;

UI:

Straight table

Dimensions  - Grade ,Score_Status

Expressions -  avg(Score) ,count( DISTINCT Empid)

uncheck suppress zero values in presentation tab

Regards

Neetha

Not applicable
Author

I need Score_status as dimension and not expression