Forum Discussion
Use Column Name as Filter
Bhoobala_P No need to Duplicate the table
In the Query Editor
1) Transform tab => Use First Row as Headers (if necessary)
2) select Customer ID, onsite/offshore and Region Columns => Unpivot Other Columns
3) Rename New Columns (if necessary) Attribute to Date
4) Close and Apply
Here's the result...
And...
Hope this helps.
Good Luck! :smileyhappy:
- Bhoobala_P9 years agoFrequent Visitor
Dear Sean,
Thanks, that really helped me. However in the first step, i.e., when I load the data and selected 'Use First Row as Header', it still converts the date value into default text(Column5, Column6, etc).
Is there an option to make the date appear as column name as such, when I select 'Use First Row as Header'??
- Anonymous9 years agoNot applicable
Hi Bhoobala_P,
When you select 'Use First Row as Header', it is impossible to make the date column heading as date type, we are only able to change type for values in one column.
After you Unpivot columns, you are able to change the type of date value in Attribute column to Date type(select the whole Attribute column and right click on it, you will get the following screenshot).
Thanks,
Lydia Zhang- Bhoobala_P9 years agoFrequent Visitor
Dear Lydia,
Thanks for the reply. Let me give some clarity to the picture. This is the sample data:
Practice Employee Activitity 01-04-2011 01-05-2011 01-06-2011 Project1 Employee1 Travel 50000 50000 50000 Project1 Employee2 Travel 50010 50010 50010 Project1 Employee3 Travel 50020 50020 50020 Project1 Employee4 Travel 50030 50030 50030 Pls refer to the snapshots below:
1. Loading the data2. Choosing first row as header3. Result (issue)
Now, how can we make the date appear as such, after making the first row as header in the query editor???
- Anonymous8 years agoNot applicable
Hello,
because of this solution data size will increase let's say we have 1 billion records if we unpivot it then it will convert in 4 Billion. This is not feasible. Actually, I am also facing this issue. Can you suggest me a better solution?
Thanks in advance