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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
MarkWill
Frequent Visitor

Stop filtering so as to get the Lowest ranking value.

Hi

I am not great on DAX and may have made it more complicated than it needs to be. So this may be a simple answer for the experts here. I am away for a few days and will reply when back in the office to any questions.

 

I have ranking of tickets closed by users within their team (Assignment Group).
What I am trying to setup using a Power Automate button is an email that sends an individual email to each team member.

It tells them the total tickets they closed, their ranking based on the tickets they closed and what the lowest rank value was for the team. I can't just count the number of team members due to duplicate rankings, I'm using "Dense" in the ranking measure.

When sending the emails the lowest rank which should be 7 ends up being a 1.

Changes ranking.jpg

3226dc2b-87f3-4f3d-b793-a0d66291e352.jpg

 

Example of email output received.

Changes
5
You ranked 4
Lowest rank is 1 (this value should be 7)
SNOW Changes 5
Other Changes 0

Dax measures and dax column formulas used are below.

Below is the measure that gives me the lowest rank value. I am thinking this may need some more work?

Lowest Change Rank by Assign Grp = MAXX(values('All Changes for Ranking'[All Changes Ranked]), RANKX(All('All Changes for Ranking'[All Changes Ranked]),CALCULATE(SUM('All Changes for Ranking'[All Changes Ranked]))))
 
Changes Rank = IF(NOT(ISBLANK('All Changes for Ranking'[All Changes Count])),RANKX(ALLSELECTED('All Changes for Ranking'),[All Changes Count],,0,Dense),BLANK())
 
All Changes Ranked = RANKX ( 'All Changes for Ranking', 'All Changes for Ranking'[Count],,,Dense  )
 
All Changes Count = SUM('All Changes for Ranking'[Count]   )

 

Thanks in advance with any help.

1 ACCEPTED SOLUTION
PurpleGate
Resolver III
Resolver III

LowestRankMeasure = calculate(MAX(Table[Changes Rank]), allselected())

Does this work?

Or maxx  

View solution in original post

2 REPLIES 2
MarkWill
Frequent Visitor

Thanks very much for your help PurpleGate. It worked with MAXX, code below. So simple when looking at it 🙂 now.

MarkWill_0-1661294103183.png

 

LowestChangeRankMeasure = calculate(MAXX('All Changes for Ranking',[Changes Rank]), allselected())
PurpleGate
Resolver III
Resolver III

LowestRankMeasure = calculate(MAX(Table[Changes Rank]), allselected())

Does this work?

Or maxx  

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.