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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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?

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.