Forum Discussion

User_266's avatar
User_266
Frequent Visitor
2 years ago
Solved

Combine two column and total

Hello,   I have a Dataset with several columns, two of which look like this:   | Departure Country |     | Arrival Country | | France |                         | Belgium | | France |           ...
  • Nithinr's avatar
    2 years ago

    To combine two columns as rows in Power BI , you can use the "Unpivot Columns" feature. 

    1. Select the columns you want to combine.  "Departure Country" and "Arrival Country" that you want to com

      bine as rows.

    2. Right-click  and choose "Unpivot Columns" from the context menu. This will transform the selected columns into rows.

    3. Rename the new columns as needed .

    4. Create a measure to get count.

     

    Country Count = COUNTAX('Table', [Value])