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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ctrlaldelight
Frequent Visitor

Order Projects by date

I have one project where my database is an online Excel file, but the projects are sorted alphabetically rather than by date. I would like to sort them by ‘DATA FIM DE OBRA.’ Is this possible?

ctrlaldelight_3-1770897883787.png

PBIX file: https://www.swisstransfer.com/d/2b6f891b-76ad-488d-b24f-716cdc6870c3

 

Thank you for your help.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @ctrlaldelight ,

 

Add the Data da Obra Column before the Projecto ojn the Category. If you want you can hide that column just resizing the column or do a hierachy layout

 

Please see file attach.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

3 REPLIES 3
ctrlaldelight
Frequent Visitor

I created a new table:

DimProjects =
FILTER(
SUMMARIZE(
“Projects”,
“Projects”[Project],
‘MaxEndDate’, MAX(“Projects”[End Date])
),
NOT ISBLANK(“Projects”[Project])
)

And I created a relationship between this table and the other table in the Projects column Cardinality → One to Many (1:*)

Filter direction → Single I sorted the Projects column in the DimProjects table by FimObraMax and kept it sorted alphabetically

MFelix
Super User
Super User

Hi @ctrlaldelight ,

 

Add the Data da Obra Column before the Projecto ojn the Category. If you want you can hide that column just resizing the column or do a hierachy layout

 

Please see file attach.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português





danextian
Super User
Super User

Hi @ctrlaldelight 

Your pbix isn't accessible from my end. 

danextian_0-1770898821872.png

That aside, you can use an External tool called Tabular Editor to sort the same distinct project value multiple times which the Power BI GUI doesn't allow. Bear in mind though that the projects will be displayed in separate rows according to their actual and sort by value

danextian_1-1770899243144.png

Notice in the image below, that the same projects are displayed multiple times and are sorted according to the Date column without this column being sorted.

danextian_2-1770899412437.png

Alternatively, you can precede the project name with an invisible character  repeated multiple times depending on the date rank in desc order

Project2 = 
VAR dateRank =
    RANKX ( 'Table', 'Table'[Date],, DESC, DENSE )
RETURN
    REPT ( UNICHAR ( 8203 ), dateRank ) & 'Table'[Project]

 

danextian_3-1770899622506.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors