Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Data from Sales in rows for each month

Hi!

 

Im trying to get a table that has the information of the months in the rows (i.e.

 

SKU YEAR JAN FEB MAR APR... DEC

0001 2021    1   6      7      9       10

0001 2022    9   4      5     6          2

0020 2021  11  40   32    17      50

0020 2022  22  119  28   78     32

to a "list"
SKU YEAR MONTH SALES

0001 2021   JAN      1

0001 2021   FEB       6

0001 2021   MAR      7

0001 2021   APR      9

...

0020 2022   DEC    32

 

Is there a way to do this while creating my query?

  • In power query,

    select first 2 columns, right-click and 'UNpivot other columns'

1 Reply

  • HotChilli's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    In power query,

    select first 2 columns, right-click and 'UNpivot other columns'