Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is there an expression for this or is a script change the way to go?

Consider the following table:

Customer IDWaveUse Profile
1011Light
1012Light
1013Medium
1021Heavy
1022Heavy
1023Heavy
1031Medium
1032Light
1033Medium
1041Light
1042Medium
1043Heavy

I would like to create a chart to look at how the [Use Profile] changes for customers over time.

For example: I would like to be able look at just the customers who were a "Light" user for Wave 1 to see what their distribution looks like over subsequent waves. The desired expression should be able to produce something similar to the below pivot table for the sample data above :

WaveUse ProfileCustomer Count
1Light2
Medium0
Heavy0
2Light1
Medium1
Heavy0
3Light0
Medium1
Heavy1

I have a few ideas of how to implement this in script, but I would prefer to use set analysis for this if possible. Any Ideas?

Thanks,

Clark

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe create a chart with dimension Wave and Use Profile, and as expression

=count({<[Customer ID] = p(), [Use Profile]= >}DISTINCT [Customer ID])

then create a listbox for User Profile and select e.g. 'Light'.

View solution in original post

2 Replies
swuehl
MVP
MVP

Maybe create a chart with dimension Wave and Use Profile, and as expression

=count({<[Customer ID] = p(), [Use Profile]= >}DISTINCT [Customer ID])

then create a listbox for User Profile and select e.g. 'Light'.

Not applicable
Author

Thanks! Had to tweak it a bit, but using p() did the trick.

I had never used that expression before - great to know about it.

Thanks,

Clark