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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
TM_AC
Helper II
Helper II

Cannot 'Mark as date table'

Hi,

I created a date table in my mysql database. The primary key is a column of (mysql) type date.
Then I opened PowerBI desktop and added this table and I wanted to mark it as date table.
The validation process finished succesfully, but the OK button keeps inactive, as one can see in the image:

PowerBI_DateTable.png

I expected the OK button turning to active to proceed, but it doesn't 😞
What I am missing here please?

7 REPLIES 7
TM_AC
Helper II
Helper II

I found the solution by myself:

It is mandatory to set the 'Data Connectivity mode' to Import and not DirectMode.


Anonymous
Not applicable

I'm having similar issues in that a date table I imported keeps giving me the message:  The date column can't have gaps in dates

 

There are not any gaps in the dates.  Based upon this thread, is there a glitch in this 'Mark as a date table' ability?  I haven't seen a response since January  

 

Thank you

TM_AC
Helper II
Helper II

Now I tested with the simplest date table (mysql), just the field 'Datum' as primary key and of type 'Date':

PowerBI_DateTable5.png

If I open the Power Query Editor the table is presented as:
PowerBI_DateTable4.png
it still contains only one record and one column only.
But still I cannot 'Mark as date table', since the OK button is inactive.

Anonymous
Not applicable

hmm sorry then I have never experienced any issues doing this at all, I tend to have a separate table that contains just the date range I need within it and no other columns.

Anonymous
Not applicable

Are you certain the column Datum selected is a date value only and has no duplicate values or blanks within it?

Hi derekborder,

 

thanks for reply, yes I am sure:

PowerBI_DateTable2.png


The records are unique, no double entries, since the 'Datum' column is primary key.

For testing I deleted all records except only one:

PowerBI_DateTable3.png

 

But still the OK button is inactive 😞

Any further thoughts here?

vanessafvg
Community Champion
Community Champion

did you ever resolve this?  I am having a similar issue.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.