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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
tommyl
Creator
Creator

Qlik Sense Grouping dimension values

Hello experts,

I have a question about grouping dimension values.  Here is my data sample:

customer_idservice_type
1PSTN
1Data
1PSTN
3PSTN
3PSTN
2Data
2Data
4Data

 

I want to display the number of customers according to their service type groups like in a treemap chart:

CriteriaCount
Only PSTN1 (for customer_id= 3)
Only Data2(for customer_id= 2 and 4)
PSTN and Data1(customer_id=1)

 

I created measure expression like:

(aggr(count({<service_type= {'PSTN'}>}service_type),customer_id)). But it is not even close. Could you please help me?

Regards,

Labels (2)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

try this:
dimension: =aggr(concat(distinct service_type,' and '),customer_id)
measure: =count(distinct customer_id)

talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

try this:
dimension: =aggr(concat(distinct service_type,' and '),customer_id)
measure: =count(distinct customer_id)

talk is cheap, supply exceeds demand
tommyl
Creator
Creator
Author

That's perfect. Instead of customer_id, i wrote service_type in the measure expresion. That is what i needed:) thank you.