Forum Discussion

Bonny86's avatar
Bonny86
Frequent Visitor
2 years ago
Solved

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.

 

 

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    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.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

    • Bonny86's avatar
      Bonny86
      Frequent Visitor

      Hi Anonymous 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