Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Pivot in direct Query

Hi All,   I am using direct query to get data from database. Below is requriment  Input Table  Seq_# Name Flag 1 A 101 1 B 102 1 C 103 2 D 101 2 E 102 3 F 101 ...
  • Nathaniel_C's avatar
    Nathaniel_C
    7 years ago

    Hi Anonymous ,

     

    Here is my table in Power Query. The only  thing I did was to change all columns to text.

     

    Select the flag column. Go to the Transform tab, click on Pivot Column, select Name as the Values Column. Go to the advance options and select don't aggregate. You will see the following.

     

    If this solves your issue, please mark this reply as the solution. Kudos are nice too!

    Nathaniel_C