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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Shoicest
New Member

Dynamic Ranking based on Filter Select

I am trying creating a dynamic Earning rank column for different   project_no   based on different filter selections (investor, region, city, industry, income_date, also the project_no itself), so that I can update rank of rows based on the selection.

 

I tried different solutions in the community, however, they don't work. All rows in my "Rank" column are 1. 

 

How can I fullfill that?

 

Here is my table, which name is "Full". And the rank should measure sum of Earning.

Thank you very much!

 

Shoicest_1-1683806842245.png

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Try this approach.  Ensure that the project_date column has the data type of Date (I see the entries are left aligned so they are probably text entries).  Create a Calendar Table with a relationship (Many to One and Single) from the Date column of the Data Table to the Date column of the Calendar Table.  To your visual, drag Project no and Date (from the Calendar Table).  Write these measures

E = sum(Data[Earnings])

Rank of E = Rankx(allselected(Calendar[Date]),[E])

Hope this helps. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors