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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors