Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Table

Hi Friends,

I'd like to be able to display something like this

MS1MS2MS3
Q1101
Q2101
Q311
Q4111

SQL db table structure is like this

Q1Q2Q3Q4MSDELAERCOUNTRY
1111MS1
001MS2
1111MS3

How can i do this.

I am using the personal edition and this is first report in Qlikview.


Appreciate if some one could help me in this.


Many Thanks,

Selva

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use the Crosstable function to remodel the data:

MyTable:

Crosstable(Quarter, Value,3)

SQL Select MS, DELAER, COUNTRY, Q1, Q2, Q3, Q4

From ...mydatabasetablehere...;

Next you can use a pivot table chart object to show the data the way you want. Use Quarter and MS as dimensions and sum(Value) as expression. Expand the Quarter dimension so that the MS dimension becomes visible. Then drag the header of the MS dimension to the right and above the expression header. When you see a horizontal blue line you can let go and the MS dimension should be displayed horizontally.


talk is cheap, supply exceeds demand

View solution in original post

11 Replies
Gysbert_Wassenaar

You can use the Crosstable function to remodel the data:

MyTable:

Crosstable(Quarter, Value,3)

SQL Select MS, DELAER, COUNTRY, Q1, Q2, Q3, Q4

From ...mydatabasetablehere...;

Next you can use a pivot table chart object to show the data the way you want. Use Quarter and MS as dimensions and sum(Value) as expression. Expand the Quarter dimension so that the MS dimension becomes visible. Then drag the header of the MS dimension to the right and above the expression header. When you see a horizontal blue line you can let go and the MS dimension should be displayed horizontally.


talk is cheap, supply exceeds demand
Not applicable
Author

very helpful thanks a lot Gysbert Wassenaar.

Not applicable
Author

Hi,

How can i find the percentage for each question

MS1MS2MS3%
Q1101sum(1+0+1)/count(ms)
Q2101
Q311
Q4111


Appreciate if you could help me in this.

Thanks,
Selva

Gysbert_Wassenaar

Try sum(Value)/count(total <MS> Value)


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

I am getting the table as below

Table.gif

I am trying to get the table like this

MS1MS2MS3%
Q1101sum(1+0+1)/count(ms)
Q2101
Q311
Q4111

Thanks,
Selva

Gysbert_Wassenaar

See attached qvw.


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks a lot

Not applicable
Author

Hi Gysbert,

I tried the expression as you mentioned. i am getting below.

Table.gif

i need the percentage value across each row. (Percentage value should display as column in the table)

Appreciate if you could help me in this.

Thanks,
Selva

Gysbert_Wassenaar

Make sure you enabled the option Partial Sums for the MS dimension on the Presentation tab.


talk is cheap, supply exceeds demand