What if I want to change the vizualisation to crosstab?
So that in columns is the latest order and in rows the second latest.
Thank you for the answer. What if I want to change the visualization to cross-tab?
Maybe the way that latest order is in columns and second latest in rows?
And is it possible to expand your code to work if i have lots of products?