Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Bonny86
Regular Visitor

Unable to mark table as data table

I have a Calendar table with 2 columns.

In the table I have all datas from 1/1/2020 to 31/12/2022. I am unable to mark the table as data table. I can't understand where is the problem. In the past this worked.

 

Bonny86_0-1711641098873.png 

Bonny86_1-1711641140876.png

 

 

1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @Bonny86 

It's important to make sure that the calendar table meets the requirements to mark the table as a date table in Power BI. To mark a table as a date table, it must meet the following criteria:

Include unique values: Each date in the table should be unique, with no duplicate dates.
Doesn't contain null values: Make sure there are no null values in the date column.
Include consecutive date values: Dates should form a continuous sequence without any gaps.
Date/time data type consistency: If the data type of the column is Date/Time, all values should have the same timestamp.
In light of these conditions, I recommend that you first verify that your calendar meets these requirements.
Here are the relevant documents:

Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yohua-msft
Community Support
Community Support

Hi, @Bonny86 

It's important to make sure that the calendar table meets the requirements to mark the table as a date table in Power BI. To mark a table as a date table, it must meet the following criteria:

Include unique values: Each date in the table should be unique, with no duplicate dates.
Doesn't contain null values: Make sure there are no null values in the date column.
Include consecutive date values: Dates should form a continuous sequence without any gaps.
Date/time data type consistency: If the data type of the column is Date/Time, all values should have the same timestamp.
In light of these conditions, I recommend that you first verify that your calendar meets these requirements.
Here are the relevant documents:

Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yohua-msft I confirm that my table has all the requirements you mentioned. The strange thing is that this error started showing me a few weeks ago. I'll try uninstalling Power BI to see if anything happened with any updates. I have no idea what else it is, I was hoping someone had received a similar message

thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.