I want to know if a client bought a chair, what will he buy next? So I loaded this table, and then created a dimension : =Aggr(rank([Date]),ID, [Date]) I have now the table below :
But when I try to do a sankey chart with : First dimension : Product1 =if(Aggr(rank([Date]),ID, [Date])=1,Product) Second dimension : Product2 =if(Aggr(rank([Date]),ID, [Date])=2,Product)
My problem is : The Product1 and the Product2 are not linked I think that if I load this dimension in the script : Aggr(rank([Date]),ID, [Date]) it will be linked, but the function doesn't work in the script 😞