Forum Discussion
Creating a new column with a cell value
- 6 years ago
Hi Hamidrezaei,
There are a couple ways to do this. The "easy" but brute force way is just to add a custom column to the table/query and enter the date. Then, just trim out the rows you don't need.
A more "system" type approach would be to promote headers, making that date a column header, then unpivot that column. Then, you would have to remove rows and promote headers and then rename the date to whatever the name is:
Initial Promoted Headers
Unpivot
Remove Rows, Promote Headers, Rename Date Field
Hi Hamidrezaei,
There are a couple ways to do this. The "easy" but brute force way is just to add a custom column to the table/query and enter the date. Then, just trim out the rows you don't need.
A more "system" type approach would be to promote headers, making that date a column header, then unpivot that column. Then, you would have to remove rows and promote headers and then rename the date to whatever the name is:
Initial Promoted Headers
Unpivot
Remove Rows, Promote Headers, Rename Date Field
Hi collinq
The problem with the unpivoting is that the date is changed every day , so the column name is not recognized the next day. Is there any other way to do this?