Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show unique values in pivot table

I have a pivot table showing 'Ideas' at various Statuses (x-axis dimension) by Region (y-axis dimension).

pivot table.jpg

However it is only showing one Idea per region and stage, when I know for some there are multiple Ideas.

My expression is very simple:

=Ideas.Idea.Title

As are my dimensions, which simple list the field name. The are not calculated in any way.

How can i show ALL the ideas at each Status and Region?

1 Solution

Accepted Solutions
morganaaron
Specialist
Specialist

That's the nature of showing dimensions in the way you are - unless there's a unique dimension value for each idea they'll be grouped and your expression will only show for region/stage combos that have only one potential value.

You could try use the concat() function which will give you all ideas for each combo, but this will format it inside of one cell, so if you have a lot of values it may not be a clear representation.

You'd need to add an ID dimension to return a unique value.

View solution in original post

20 Replies
jsingh71
Partner - Specialist
Partner - Specialist

Tell me

"Ideas.Idea.Title" is your fieldname?

morganaaron
Specialist
Specialist

That's the nature of showing dimensions in the way you are - unless there's a unique dimension value for each idea they'll be grouped and your expression will only show for region/stage combos that have only one potential value.

You could try use the concat() function which will give you all ideas for each combo, but this will format it inside of one cell, so if you have a lot of values it may not be a clear representation.

You'd need to add an ID dimension to return a unique value.

Not applicable
Author

Yes

Digvijay_Singh

You can try Concat(Idea field,',') as expression. If you have multiple values per region and status, it needs to be concatenated. Single field name in expression if results into multiple different values will show null in the output.

OR try Aggr(Concat(Idea filed,','),Region,status)

I think the first one should work if we have taken Region and status as dimensions in the chart.

Thanks,

Not applicable
Author

OK, i have tried what you suggested and it works, but it's not ideal

I don't want the Idea Number dimension showing, nor do I want one row for each idea,as this make the table far too big

pivot ideas.jpg

Not applicable
Author

Can i insert a line break, rather than a comma?

Digvijay_Singh

try chr(10)

morganaaron
Specialist
Specialist

The other option as mentioned is using Concat. You could use Concat([Idea], chr(10)) and then wrap the cell height to the max number of ideas per combination to show this in a similar idea without needing the ID field.

Not applicable
Author

That worked, but I now need to colour Ideas which have the Priority field set as 'High' red.

Is that possible within the same cell? If not, is there a different solution?