Power Query Unpivot?

shophoney

Active Member
Joined
Jun 16, 2014
Messages
281
HI, I have a power query table with payments made on a transaction. I would like to have all payments on one line for each transaction so I can link them to the sales table.

But if a customer paid with 2 credit cards in power query it is listed on 2 lines. I was hoping to use the un pivot and have the types of tenders on the top and the amounts going down.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
post a link to the shared, desensitized excel example file
structure and type of data should be reflected
use OneDrive, GoogleDrive or any similar to get a link
 
Last edited:
Upvote 0
It seems you do not need to unpivot. Just use pivot table on your data. perhaps add a column, which will say, amex, eftpos, paypal...
Then add transaction, date, customer name in rows; tender type in columns, amount in values.

unpivot is when you have summary table, Jo, Bo Len, total payments on Mon Tue Wed.
Then you can unpivot to Jo Mon 4, Jo Tue 4, Jo Wed 5, which can be put in pivot table.

hope it helps
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top