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 t...
  • 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.