Forum Discussion
Use Column Name as Filter
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
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???
- Anonymous9 years agoNot applicable
Hi Bhoobala_P,
What is the data type of Column4, Column5, Column6 in your scecond screenshot?
In your third screenshot, delete the last two steps from "APPLIED STEPS" , then choose first row as header and check the result.
Thanks,
Lydia Zhang- Bhoobala_P9 years agoFrequent Visitor
The data type of these three columns is currency, i.e., they are basically revenues in $.
And yes Lydia, I tried deleting the two steps and tried to promote the first rows as headers right of the navigation step (default one).
Still the same issue..!
- MarcelBeug9 years agoCommunity Champion
In order to have values, other than text or numbers, promoted to headers, you must use the second argument of Table.PromoteHeaders as in:
= Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true])
- Bhoobala_P9 years agoFrequent Visitor
Dear Marcel,
I did the same after undoing all the other changes except Promote Headers. I added [PromoteAllScalars=true] into the table formula, yet the same problem persists...!
- MarcelBeug9 years agoCommunity Champion
Can you share another screenshot? With the Table.PoromoteHeader step as the last step, like in your step3 above, but with the adjusted formula? And also the step prior to that step, with the dates in the first row?