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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
johndolan2
Resolver I
Resolver I

Analyze in excel converts dates to text

Hi - Analyze in excel converts dates to text. Is there a fix to this?

 

Thanks,

 

John

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Ah - you didn't mention the date hierarchy. I wouldn't do that if I were you. I always prefer to use a dedicated (and declared) dates table in my data models.  Maybe you can give that a try.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Ah - you didn't mention the date hierarchy. I wouldn't do that if I were you. I always prefer to use a dedicated (and declared) dates table in my data models.  Maybe you can give that a try.

I had started to wonder is I should have created a date table. A year ago when I uploaded the single spreadsheet it just did not cross my mind. Thanks very much.

John

 

lbendlin
Super User
Super User

What actually happens is that the Power BI UI quietly (or on your instruction) treats a text field as date.  But Analyze in Excel connects to the underlying data model where that field is still text (or variant).  Change the field type in your data source, or in the Power Query M code.

Thanks for the reply. I must be misunderstanding something ... because I definately have the field set as date, in my source spreadsheet, Power Query, and the model. I also have a date hierarchy. It is only when using Analyze in Excel that the date hierarchy goes away and the dates can no longer be grouped. 

 

Thanks again, John

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors