Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
cawestelaken
Contributor II
Contributor II

How to correctly load data/create pie chart?

Hello reader,

I've got a small table such as below:

IdentifierValue AValue BValue CValue DValue E
V112345
V254321
V334512
V421543

Now what I'd like to create is a pie chart, showing me the percentage of the values in the rows per value. So for instance, I'd make a pie chart for V1, 1/15th value A, 2/15th Value B, 3/15th Value C, 4/15th Value D, and 5/15th Value E.

Would it be easier to transform this table in a certain way, or is this already possible but am I simply being clueless at the moment?

Your sincerely,
Casper Westelaken

1 Solution

Accepted Solutions
OmarBenSalem

Change ur table as follow:

Crosstable(Value,Measure)

load Identifier, "Value A","Value B","Value C","Value D","Value E" from source


Now, in ur pie chart, use :

dimension: Value

Measure: Sum(Measure)

View solution in original post

6 Replies
OmarBenSalem

Change ur table as follow:

Crosstable(Value,Measure)

load Identifier, "Value A","Value B","Value C","Value D","Value E" from source


Now, in ur pie chart, use :

dimension: Value

Measure: Sum(Measure)

tomasz_tru
Specialist
Specialist

cawestelaken
Contributor II
Contributor II
Author

I assume you mean for me not to use the Data Manager to load the excel sheet?

cawestelaken
Contributor II
Contributor II
Author

Haha, in that case the question still counts for a bar chart

OmarBenSalem

U can perform crosstable using the data manager :

Unpivoting crosstable data in data manager - Qlik Sense - YouTube

I just prefer using the script to control everything

cawestelaken
Contributor II
Contributor II
Author

This was indeed the case, thank you very much!