wzhang0 commented on issue #3059: Cannot create sankey diagrams with more than 
two source/target dimensions
URL: 
https://github.com/apache/incubator-superset/issues/3059#issuecomment-321914740
 
 
   I had the same problem before, and get fixed by correcting the data set 
structure. You should use UNION to connect tables.
   
   For example:
   select source, connect_1, sum(revenue) as income, 'test' from your_table 
group by 1,2 
   union
   select connect_1, target, sum(revenue) as income, 'test' from your_table 
group by 1
   
   And then try to visualize by sankey diagrams.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to