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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors