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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Display rank for current user

I have ranked data in a matrix based on volumes & manager name, that filters based on the financial year selected.

 

rank_table.jpg

 

What I want to do on a separate details page, is filter all the results to the current manager, by using the USERNAME() formula. The other measures i'm using work fine with this additional filter. The RANK, however, i've been unable to figure out, without using a slicer.

 

Based on the table above, viewing the details page as Steven, I want to see the rank of 4 for the ETOU GWh - every variation i've tried so far as returned 1 - presumably because it's filtering the entire dataset to Just Steven.

 

9 REPLIES 9
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Anonymous

 

Do you carry the information about the financial year selected through to your details page?  I think this will be needed to re-work out on your details page what Stevens ranking should be.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Hi @Phil_Seamark

 

No, it's not - the financial year is selected via slicers.. is it possible to carry that across pages?

 

I have a measure calculate what the selected financial year is, which is used in other measures to filter the data.

 

The etou gwh won measure calculation is this:

ETOU GWh Won = CALCULATE(SUM(WIP_Data[TOU Volume]),
			FILTER('WIP_DATA',WIP_Data[Outcome]="Won"),
			FILTER(ALL(Dates),Dates[FINANCIAL_YR]=MAX(Dates[FINANCIAL_YR])),
			FILTER(WIP_Data,WIP_Data[Fuel ]="Elec"))+0

 

This is the current Rank measure:

ETOU Rank = RANKX(ALL(Managers[MANAGER_NAME]),[ETOU GWh Won]) 

Hi @Anonymous

 

Slicers can only filter visuals on the same report page as the slicer.  They have no effect on other pages.  Will that be a problem?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Not at all, I've put a financial year slicer on the details page as well, so the managers can see how they did in years past

Hi @Anonymous

 

One idea is to create a calcuated table in with data aggregated to just what you need and add the [ETOU GWh Won] and [Rank] formulas as calcuated columns on the calcuated table


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

@Phil_Seamark

 

I had the same thought, couldn't get the rank working there either as because I want it to rank the mangers by financial year.

 

I found this post - https://community.powerbi.com/t5/Desktop/How-to-Rank-a-list-based-on-2-values-double-rankX/td-p/4400... not sure how to apply it to what i'm trying to do

 

Hi @Anonymous,

 

Could you try this formula?

ETOU Rank = RANKX(ALLSELECTED(Managers[MANAGER_NAME]),[ETOU GWh Won]) 

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-yulgu-msft,

I tried that in a measure and calculated table, both returned 1 for all records.

 

I've decided to go another way with this report - so rank isn't going to be used any further.

Hi @Anonymous,

 

Thanks for your sharing.

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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