Super User Asked by CatVI on October 10, 2020
Here is an example of what I want to do.
Area Y M D1 D2 D3 D3 D5 D6
Barisal 1953 11 0 0 4 16 0 2
Barisal 1953 12 35 14 9 0 0 0
Barisal 1954 1 0 1 16 10 0 0
I want to turn the table above into this :
Area Y M D
Barisal 1953 11 0
Barisal 1953 11 0
Barisal 1953 11 4
Barisal 1953 11 16
Barisal 1953 11 0
Barisal 1953 11 2
Barisal 1953 12 35
Barisal 1953 12 14
Barisal 1953 12 9
Barisal 1953 12 0
Barisal 1953 12 0
Barisal 1953 12 0
Barisal 1954 1 0
Barisal 1954 1 1
Barisal 1954 1 16
Barisal 1954 1 10
Barisal 1954 1 0
Barisal 1954 1 0
So I want to expand the cell in month (area and year too) column by the number of days behind it. Then transpose and stack all the day cells into one column.
For the love of god I don’t know how to do this other than going through a thousand steps. The dataset I have is rainfall data just like this but has thousands of rowns and 30-31 day columns.
This takes only a few clicks with Power Query / Get and Transform.
It will work best if the data has been turned into a Table object with Ctrl-T.
If you add more data to the original table, you only need to refresh the query.
Correct answer by teylyn on October 10, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP