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
Saap
Resolver III
Resolver III

Sorting the dates in Excel when connecting to Power BI dataset

Hi all,

I connect to one of my reports via Excel and create a pivot table using the Power BI dataset.
One of the columns I am using in pivot table conatins dates.

I would like to sort the dates from the newest to the oldest.

The issue is that the Excel reads these dates as text and I can only sort it ascending or descending which gives me wrong results.

The column data type in report is set to "Date".
Formating cells in Excel doesn't work.

 

Is there a way to change this column's format in Excel so it sorts properly?

 

Wrong outcome:

Saap_0-1680596935463.png


Desired outcome:

Saap_1-1680597001936.png

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@Saap , Make sure the pivot table is sorted on date not on value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

It is set to sort by date.

Saap_0-1680602848924.png

Screenshot is in Polish but it says it sorts descending by date.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.