This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
How do you know which row (From Brand, Product, price set) aligns with which row (Brand, Rank, Rating set)? If the records are simply aligned by position then I would join the datasets together instead of unioning and join by record position. Need more information to understand how the datasets align.
You can do it this way (also attached) to get the expected output in your picture:
But completely agree with @Dynamomo . It can be a bit of a dangerous game to start moving some cells up, as the end table may not align in the way you're expecting (e.g. Samsung and Nokia being one row, as per your example and this output)
You can do via a join on record position or even a transpose and cross tab; I've used a running total to 'define' what record ID each row should be for the output - but remember the logic here is to simply remove all NULL cells, shifting everything else up, no other 'rules' are being applied...