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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.