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

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
mstoler
Partner - Specialist
Partner - Specialist

Qlik Sense Pie chart Number in legion

Hello,

In QlikView I can show the numbers in the legion as below.  

 

mstoler_0-1644346785876.png

 

How can I do this in qlik sense?

Thank You,

 

Michael

Labels (1)
1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

Hello,

 

Perhaps you can follow this approach:

1. I have the following load statement:

Data:
load * inline [
    Product
    Product A
    Product B
    Product B
    Product C
];

 

2. Then I have created a table with the counts of the product:

CountTable:
load
    Product as Product,
    Count(Product) as Count
Resident Data Group By Product;

 

3. In sheet, I have created a Pie Chart

4. I have added as measure the expression =Count(Product)

5. And as dimension I have added the expression =Product & ' ' &  Count

6. The outcome is:

IMAGE

 

As you can see the legend displays the product names and near each product name it displays the count value for each product.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 
 

 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

2 Replies
Andrei_Cusnir
Specialist
Specialist

Hello,

 

Perhaps you can follow this approach:

1. I have the following load statement:

Data:
load * inline [
    Product
    Product A
    Product B
    Product B
    Product C
];

 

2. Then I have created a table with the counts of the product:

CountTable:
load
    Product as Product,
    Count(Product) as Count
Resident Data Group By Product;

 

3. In sheet, I have created a Pie Chart

4. I have added as measure the expression =Count(Product)

5. And as dimension I have added the expression =Product & ' ' &  Count

6. The outcome is:

IMAGE

 

As you can see the legend displays the product names and near each product name it displays the count value for each product.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 
 

 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂
mstoler
Partner - Specialist
Partner - Specialist
Author

Hello,

Thanks that looks interesting but another difference is that QlikView will display the entire legend while Qlik Sense does not. 

What I did is just create a table with the values. 

Thanks,

 

Michael