Forum Discussion

MatthewMcL's avatar
MatthewMcL
Frequent Visitor
8 years ago
Solved

Reordering Table Columns in DAX/ Outside of Query Manager

Hello,   I have three tables that I had created outside of the Query Editor, through "New Table" (Calculated Tables). I have calculated columns here that I created using DAX. Now that I have these ...
  • v-chuncz-msft's avatar
    8 years ago

    MatthewMcL,

     

    To get the table as requested, we can use SELECTCOLUMNS Function (DAX) to reorder columns. For example:

    Table =  UNION(SELECTCOLUMNS(State1, Name1, Field1, Name2 , Field2…), SELECTCOLUMNS(State2, Name1, Field1, Name2, Field2…)…)