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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
mattiasthalen
Contributor
Contributor

Spread the values in a dimension

Hi,

I have a table chart like this:

TRX_IDLPN_TYPELPN_NAME
123ContentABC
123TransferDEF

 

In the front-end (not in the script) I wish to create a table chart that will look like this:

TRX_IDContentTransfer
123ABCDEF

 

I've tried doing calculated dimensions, ie:

=IF([LPN_TYPE] = 'Content', [LPN_NAME])

But this still leave me with two lines, albeit, the line for the lpn_type 'Transfer' has this column set to null.

Any help is much appreciated!

6 Replies
seanbruton
MVP
MVP

Hi There,

You are on the right track. The dimension field remove the tick box include null values.
Then your first measure is =IF([LPN_TYPE] = 'Content', [LPN_NAME])
Then your first measure is =IF([LPN_TYPE] = 'Transfer', [LPN_NAME])
Also on the measures change the labels to the new titles.

Good Luck!
sunny_talwar
MVP
MVP

Why don't you create a pivot table where LPN_TYPE is your pivoted dimension and LPN_NAME is your expression?

OmarBenSalem
Partner - Champion II
Partner - Champion II

Create a pivot table:

as line:

TRX_ID

as Column : LPN_TYPE

as a measure: concat(LPN_NAME,', ')

result

Capture.PNG

mattiasthalen
Contributor
Contributor
Author

Because I need it to stay as a dimension and not a measure.

sunny_talwar
MVP
MVP

LP_NAME needs to stay as dimension you mean?

seanbruton
MVP
MVP

If they all need to be dimensions use my same process and use a table and only create dimensions. Untick remove null values.