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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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