Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have used a Table.DuplicateColumn command to create a copy of a datetime column (Start DateTime), including specifying the type as date:
#"Duplicated Start DateTime" = Table.DuplicateColumn(#"Previous Step", "Start DateTime", "Start Date", type date)
My question / issue is that the ColumnType option seems to be ignored and the new column appears as datetime (although the 'icon' is date), which I then have to change in another step.
Original columns:
New Column:
Solved! Go to Solution.
Might be just a cosmetic issue, similar to what we had for the longest time with Table.AddColumn *
Note: Specifying a Date column type is futile as Power BI doesn't actually have such a data type. In Power BI everything is datetime behind the scenes.
* on second thought you can replace Table.DuplicateColumn with Table.AddColumn.
Might be just a cosmetic issue, similar to what we had for the longest time with Table.AddColumn *
Note: Specifying a Date column type is futile as Power BI doesn't actually have such a data type. In Power BI everything is datetime behind the scenes.
* on second thought you can replace Table.DuplicateColumn with Table.AddColumn.
Table.AddColumn(#"Previous Step", "Start Date", each Date.From([Start DateTime]), type date)
It's what we call "syntax sugar" - a convenience function that is equivalent (or should be) to a more atomic function.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
50 | |
32 | |
26 | |
26 | |
25 |
User | Count |
---|---|
62 | |
49 | |
30 | |
24 | |
23 |