Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Pivot tables help

Greetings Community. I'm having problems with pivoting tables.   I have a talbe like this     City name as headers, the following row has the name of the country that city belongs to. I wi...
  • v-piga-msft's avatar
    v-piga-msft
    8 years ago

    Hi Anonymous,

     

    For you scenario, I have create a table similar with your farmat.

     

    Assuming that you have a table like below.

    Fecha A1 A2
      country1 country2
    01/01/2018 10  
    01/02/2018 20  
    01/03/2018   10
    01/04/2018 25  
    01/05/2018 25 30

     

    1. Get data and go to Query edit.

     

    2. Duplicate the table and unpviot the columns.

     

    More details you could have a reference of the Applied steps in Query Editor for the attached pbix.

     

    Here is the result.

     

     

    Best Regards,

    Cherry