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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Hsilva
Helper I
Helper I

Excel get data from Power BI doesn't recognize Dates as Number and cannot be sort.

Hello community, 

I have a pivot table connected to a Power BI data model (get data from Power BI), in the data model the Month-Name and MM-YY columns are sorted by another column and woks perfect. The problem is in excel pivot table when I sort the dates in a different way to the data source order it doesn't work ( for any of date fields: date , month, period or MM-YY). I understand excel doesn't recognise Date data from Power BI as a number, but this is happening also with month number or period.

Any suggestion?

Thanks in advance

 

1 ACCEPTED SOLUTION

Hi @Hsilva 

 

What I have found is that you need to create a date table and link your date column to the date table. Then make sure to mark your date table as a Date TABLE.

Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn


Then once that is done and you have uploaded your Power BI report to the service, then connect with Excel and it should work with the dates.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
Hsilva
Helper I
Helper I

Hi GilbertQ, thank you for your help.

Yes; they are number, but the calendar table was created in Power Pivot in excel (not in power query).

this model was initially created in Excel then imported to Power BI.

does that answer your question?

Thank you.

Hi @Hsilva 

 

What I have found is that you need to create a date table and link your date column to the date table. Then make sure to mark your date table as a Date TABLE.

Set and use date tables in Power BI Desktop - Power BI | Microsoft Learn


Then once that is done and you have uploaded your Power BI report to the service, then connect with Excel and it should work with the dates.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi Gilbertm thank you for your help.

yes I have calendat table with a dete column (market as a date table) adn also linked to the date calumn from the fact talbe.

Hsilva_0-1690358325352.png

 

GilbertQ
Super User
Super User

Hi @Hsilva 

 

Can you confirm that even though your column might have a number in it, is the data type set to whole number?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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