Share via

Power Query + stack and organize columns vertically

Anonymous
2022-08-15T20:00:59+00:00

Hey Guys,

I have

Date revenue accommodation hotel rate transfer F&B Restaurants Minibar
01/01/2022 20,00 7,00 10,00 -3,00 13,00 5,00 8,00
01/02/2022 21,00 8,00 15,00 -7,00 13,00 7,00 6,00
01/03/2022 22,00 6,00 8,00 -2,00 16,00 9,00 7,00

And I want

Date Account Type Revenue Group Category Total (U$)
01/01/2022 revenue accommodation hotel rate 10,00
01/01/2022 revenue accommodation transfer -3,00
01/01/2022 revenue F&B Restaurants 5,00
01/01/2022 revenue F&B Minibar 8,00
01/02/2022 revenue accommodation hotel rate 15,00
01/02/2022 revenue accommodation transfer -7,00
01/02/2022 revenue F&B Restaurants 7,00
01/02/2022 revenue F&B Minibar 6,00
01/03/2022 revenue accommodation hotel rate 8,00
01/03/2022 revenue accommodation transfer -2,00
01/03/2022 revenue F&B Restaurants 9,00
01/03/2022 revenue F&B Minibar 7,00

It doesn't need to include the header part, I can do that manually later, but I need help building this structure.

If possible I wish a Power Query solution because this is where I am trying to make it work.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 101.8K Reputation points Volunteer Moderator
2022-08-15T23:50:26+00:00

Hi,

You may download my solution workbook from here.

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2022-08-17T12:06:13+00:00

    You are welcome.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-08-17T11:48:03+00:00

    Hey Ashish Mathur,

    Thanks a lot for the help, I'll include the steps you made.

    Thank you so much!! :)

    Was this answer helpful?

    0 comments No comments