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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Lucky1
Creator
Creator

How to add value to dimension

I have a dimension in my table 

Products

  Apple

   Orange

Banana

Measure count(id)

I want to add 'All products by count'

So my output will be like 

Product 

All products by count 3

Apple.                     1

Orange.                   1 

Banana.                   1

 

 

 

I have to add Dd in status

Labels (4)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this 

Products:

LOAD Product,

     count(ID) as Count

FROM YourDataSource

GROUP BY Product;

 

Concatenate(Products)

LOAD 'All products by count' as Product,

     count(ID) as Count

FROM YourDat

aSource;

 

View solution in original post

3 Replies
Chanty4u
MVP
MVP

Try this 

Dimension: Product

 

Measure: Count({1} Id)

 

Lucky1
Creator
Creator
Author

Hi i want to show 'all products by count'  along with banana apple and in the measure i want to show the count(id)

Chanty4u
MVP
MVP

Try this 

Products:

LOAD Product,

     count(ID) as Count

FROM YourDataSource

GROUP BY Product;

 

Concatenate(Products)

LOAD 'All products by count' as Product,

     count(ID) as Count

FROM YourDat

aSource;