Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
saivina2920
New Contributor III

How do we convert as column count from by row data using Chart-Straight table

I have SQL table and it contains millions of records. I just want to get count of every gropy by values dynamically..

This i want using Chart-Straight Table.

For example, let us consider below is my table example.

Material.No           Grade

101                            A

102                           B

103                           C

101                           C

101                           A

110                          D

110                           A

104                          F

103                          M

etc.....                    .....

 

Final output would be and group by grade. so the count as below

          B          C        D        F         M

3            1           2        1         1          1

Note : The output will be always dynamic. some times it may add some more values. so want to get that count also.

pls. guide us how to get the count in Chart - Staright Table. This is important in my module and reply asap.

     

 

1 Solution

Accepted Solutions

Re: How do we convert as column count from by row data using Chart-Straight table

May be this

Dimension

Grade

Expression

Count([Material.No])
13 Replies

Re: How do we convert as column count from by row data using Chart-Straight table

May be this

Dimension

Grade

Expression

Count([Material.No])
saivina2920
New Contributor III

Re: How do we convert as column count from by row data using Chart-Straight table

can i have sample page with example complete Scripts...

Re: How do we convert as column count from by row data using Chart-Straight table

sample script? I am not sure I understand? Do you have an app where you are trying this? May be share that and we can update it to show how this can be done

saivina2920
New Contributor III

Re: How do we convert as column count from by row data using Chart-Straight table

Thanks for your help..
shall i directly call the below as you mentioned.
Dimension : Grade
Expression : Count([Material.No])
if i set the above expression, can i get the below report.
A B C D F M

3 1 2 1 1 1

Re: How do we convert as column count from by row data using Chart-Straight table


@saivina2920 wrote:
Thanks for your help..
shall i directly call the below as you mentioned.
Dimension : Grade
Expression : Count([Material.No])
if i set the above expression, can i get the below report.
A B C D F M

3 1 2 1 1 1

I believe so

saivina2920
New Contributor III

Re: How do we convert as column count from by row data using Chart-Straight table

I tried. but, i will show as row wise..like below.
A : 3
B : 1
C : 2
😧 1

etc....

But, i want horizontal wise not vertical wise..

Re: How do we convert as column count from by row data using Chart-Straight table

On the presentation tab, check 'Horizontal' to make it horizontal 🙂

saivina2920
New Contributor III

Re: How do we convert as column count from by row data using Chart-Straight table

Thanks., i already found..even though great help...kudos...
My grade some values are blank and should not consider the value.
How to exclude the blank value in the grade (dimensions)...

Re: How do we convert as column count from by row data using Chart-Straight table

Not sure I understand your question? Can you elaborate using an image?