Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I don't think the data type DATETIME availabel in DATATABLE works, as in a date time should work as a date / time
but
Solved! Go to Solution.
Ran it on my machine. That function does not seem to like non hard coded values. This worked
Dtable =
DATATABLE(
"dDate", DATETIME ,
{{"01/01/2020"}}
)
Hi @Dicken,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Hi @Dicken ,
We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithra.
Hi @Dicken ,
Try this DAX expression:
Dtable =
DATATABLE (
"dDate", DATETIME,
{
{ DATE(2020, 1, 1) + TIME(0, 0, 0) }
}
)
Hi @Dicken,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
I have not had a response that works, regarding DATATABLE function,
so I don't think it is possible, I did use the 'enter data' option, to give a two date table for first and last.
Richard.
I don't know if you got it to work but I get this ;
The tuple at index '1' from the table definition of the DATATABLE function does not have a constant expression in the column at index '1'
Ran it on my machine. That function does not seem to like non hard coded values. This worked
Dtable =
DATATABLE(
"dDate", DATETIME ,
{{"01/01/2020"}}
)
I don't think it will work, I wanted a two date tabel that could be used by
canender, in the end I just used Enter data whch does work.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |