Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data format.

Hi All,

I am having the following data table in database:

EmpIDNameColorCount
1AmanRed8
2RamanYellow4
3KamalGreen15
4PawanRed12
5GaganYellow9
6TapanGreen2


Now i need to draw a chart for that i need data in folloing format.

EmpIDNameRedYellowGreen
1Aman8
2Raman4
3Kamal15
4Pawan12
5Gagan9
6Tapan2


Can anyboby please help me how can i get this type of data?

I think it is related to cross table.

Thanks in advance.

1 Solution

Accepted Solutions
johnw
Champion III
Champion III


mansi wrote:Can anybody please tell me how i modify the table structure at Qlikview level i think we need to use Cross table.


You don't need to modify the table structure at all. Make a bar chart. Use dimensions Name and Color. Use expression sum(Count). Set it to stacked instead of grouped on the style tab. See attached.

Edit: Added a background color expression to set the colors of the bars to match the color values.

View solution in original post

9 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Make a pivot table with EmpID, Name and Color in the Dimensions and sum([Count]) in the expression. Label this Expression as Colors.

Then, on the chart, pick the Color column (drag and drop) and place it on top of Expression column Colors.

Not applicable
Author

hi,

pls see the attached application

thanks

Not applicable
Author

hi,

pls check out this

it shud work

thanks

Not applicable
Author

Thanks Tauqueer for the reply.

My requirement is different. I need to create bar chart as attached.

This chart can be created using the folloing format:

EmpIDNameRedYellowGreen
1Aman8
2Raman4
3Kamal15
4Pawan12
5Gagan9
6Tapan2


Can anybody please tell me how i modify the table structure at Qlikview level i think we need to use Cross table.

Thanks in advance.

Not applicable
Author

Hi

If you have a fixed number of Colors you could load the count into the correct field in the load

if (Color='Red', Count) as Red,
if (Color='Yellow', Count) as Yellow

etc

Regards

Juerg

Not applicable
Author

Thanks Juerg Maier JmiD GmbH Schweiz for the reply.

Not applicable
Author

Hi mansi

you add a picture and I rethink my naming Smile

Juerg

johnw
Champion III
Champion III


mansi wrote:Can anybody please tell me how i modify the table structure at Qlikview level i think we need to use Cross table.


You don't need to modify the table structure at all. Make a bar chart. Use dimensions Name and Color. Use expression sum(Count). Set it to stacked instead of grouped on the style tab. See attached.

Edit: Added a background color expression to set the colors of the bars to match the color values.

Not applicable
Author

Thanks John for the reply. You saved lot of efforts.