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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

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

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.