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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
AtchayaP
Helper V
Helper V

Date table

Hi, what is the error? What change should I make?

16436518307846459755358817954672.jpg

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

Hi @AtchayaP ,

There are some limitations about Mark as date table.

When you specify your own date table, Power BI Desktop performs the following validations of that column and its data, to ensure that the data:

  • contains unique values
  • contains no null values
  • contains contiguous date values (from beginning to end)
  • if it is a Date/Time data type, it has the same timestamp across each value

Please check whether your date column is contiguous.

Reference: Set and use date tables in Power BI Desktop - Power BI | Microsoft Docs

 

Best Regards,
Community Support Team _ kalyj

 

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

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @AtchayaP ,

There are some limitations about Mark as date table.

When you specify your own date table, Power BI Desktop performs the following validations of that column and its data, to ensure that the data:

  • contains unique values
  • contains no null values
  • contains contiguous date values (from beginning to end)
  • if it is a Date/Time data type, it has the same timestamp across each value

Please check whether your date column is contiguous.

Reference: Set and use date tables in Power BI Desktop - Power BI | Microsoft Docs

 

Best Regards,
Community Support Team _ kalyj

 

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

Samarth_18
Community Champion
Community Champion

Hi @AtchayaP ,

 

Could you please share the snapshot of your date table which you tried to mark as date table. For creating date table for your model please refer below article.:-

 

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

bcdobbs
Community Champion
Community Champion

A date table needs to have one row per day and contain an unbroken sequence of dates.

 

eg if you have 1-Feb-2022 and then skip to 3-Feb-2022 you'd get that error.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

  • I got the dax measure for my date table , but while using it in table visual  I'm getting date and year in column, but for example if I use line chart year with other colnumn, I'm not getting the right visual,does it mean I did mistake in DAX
bcdobbs
Community Champion
Community Champion

Are you able to share a pbix file. Really need some example data and expected outcomes in order to help.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.