Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31099

Transform data which has multiple columns with the same name but different values.

$
0
0

Below is the data, which I have multiple cash and credit columns. 

DateSalesman NameBranchItem E1Item E2Item E3Item E4CASHCREDITItem S1Item S2Item S3CASHCREDIT
01-10-2024aX3026203052344330
01-10-2024bS12144162478243344321
01-10-2024cA51509191290652014

 

I want to transform the data so that I can  have only one cash and credit column obtain this:-

 

DateSalesman NameBranchItemsQuantityCashCredit
01-10-2024aXItem E132030
01-10-2024aXItem E202030
01-10-2024aXItem E322030
01-10-2024aXItem E462030
01-10-2024aXItem S154330
01-10-2024aXItem S224330
01-10-2024aXItem S3344330
01-10-2024bSItem E1121624
01-10-2024bSItem E211624
01-10-2024bSItem E341624
01-10-2024bSItem E441624
01-10-2024bSItem S1784321
01-10-2024bSItem S22434321
01-10-2024bSItem S3344321
01-10-2024cAItem E151912
01-10-2024cAItem E2151912
01-10-2024cAItem E301912
01-10-2024cAItem E491912
01-10-2024cAItem S192014
01-10-2024cAItem S202014
01-10-2024cAItem S3652014

 

 


Viewing all articles
Browse latest Browse all 31099

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>