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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
Super User
Super User

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

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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