Qlik Community

Qlik Sense Advanced Authoring

Discussion board where members can learn more about Qlik Sense Advanced Authoring.

Highlighted
McLaughlinMatt
New Contributor

Function for changing target/source coloring of Sankey

I have a 3 dimension Sankey chart that I would like to have the links colored based on the source for the first link (between dimensions 1 and 2) and colored based on target for the second link (between the 2nd and 3rd dimension).

How do you detect which link you're on? I'm trying to do this:

if( ?SOMECONDITIONAL? ,  'SOURCE' , 'TARGET' )

Labels (3)
2 Replies
McLaughlinMatt
New Contributor

Re: Function for changing target/source coloring of Sankey

Anyone... crickets...

Julien_OF
New Contributor II

Re: Function for changing target/source coloring of Sankey

Hello,

I have the same needs but Im still trying to find a way to do this..

Tried with dimensionality() or fixing SOURCE/TARGET to field value but from what I understand, SOURCE/TARGET is applied to the whole links.

I also tried by fixing links color on field value, like : if(Dim1='A',Red(),if(dim1='B',Green(),if(dim2='AA',Blue()))) but the colors only apply to the first dimension throughout the whole chart, splitting your second links from your first dimension..