Forum Discussion

Emrecan's avatar
Emrecan
Icon for Helper I rankHelper I
4 years ago
Solved

Unifiying ever increasing columm numbers to a single data source

Hello Community I have a situation where each month a new table of data is delivered by email to company.   The table contains columms for that months specific sales info. So each time the report ...
  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    4 years ago

    Use this for your Unpivot step

    Table.Unpivot(#"Removed Columns", List.RemoveNulls(List.Transform(Table.ColumnNames(#"Removed Columns"),each try if List.Contains(List.Numbers(1,12),Number.FromText(Text.Split(_,"-"){0})) then _ else null otherwise null)), "Attribute", "Value")