Hi All,
I'm very new to Power Query and DAX. I have a data set - a daily report that I'm trying to unpivot dynamically. The anchor columns A&B will never change. However, from columns C, these are daily reports a day (New Date will be added as Column Headers Plus the data (values) for those dates) will be added every time I add new data. How do I dynamically capture these new dates that will be added daily? I found this DAX online, but it's giving an error where there is the word "attribute". Can someone please help me to solve this?
let Source = Excel.CurrentWorkbook(){[Name=„ProductPlan“]}[Content],
Cols = Table.ColumnNames(Source),
ColsUnPivot=List.Skip(Cols, 1),
Unpivot = Table.Unpivot(Source,ColsUnPivot,„Attribute“,„Value“)
in
Unpivot
I'm very new to Power Query and DAX. I have a data set - a daily report that I'm trying to unpivot dynamically. The anchor columns A&B will never change. However, from columns C, these are daily reports a day (New Date will be added as Column Headers Plus the data (values) for those dates) will be added every time I add new data. How do I dynamically capture these new dates that will be added daily? I found this DAX online, but it's giving an error where there is the word "attribute". Can someone please help me to solve this?
let Source = Excel.CurrentWorkbook(){[Name=„ProductPlan“]}[Content],
Cols = Table.ColumnNames(Source),
ColsUnPivot=List.Skip(Cols, 1),
Unpivot = Table.Unpivot(Source,ColsUnPivot,„Attribute“,„Value“)
in
Unpivot