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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nardtmo
Helper III
Helper III

Ranking issue

Hi everyone,

 

i have this table with desired ranking output column 

rank based on  points_SA (desc) and rerank every date change. 

 

dax formula below is working but not giving me the desired output.

note: points_SA is a measure

 

 

appreciate the help!! thanks in advance

 

Rank_SA_pt =
RANKX(
    FILTER(
        ALL(date),
        [Points_SA] <> BLANK() && [Points_SA] <> 0
    ),
    [Points_SA],
    , DESC, Dense)

 

Market IddatePoints_SARankoutput should be
texas4/16/2024 0:00111
Miami4/16/2024 0:000.722
Philadelphia4/16/2024 0:000.722
North Carolina4/16/2024 0:000.722
New York4/16/2024 0:000.635
New England4/16/2024 0:000.635
New Jersey4/16/2024 0:000.635
Los Angeles4/16/2024 0:000.548
Washington DC4/16/2024 0:000.548
San Francisco4/16/2024 0:000.3510
California4/16/2024 0:000.1611
texas4/17/2024 0:00111
Miami4/17/2024 0:000.722
Philadelphia4/17/2024 0:000.722
North Carolina4/17/2024 0:000.722
New York4/17/2024 0:000.635
New England4/17/2024 0:000.635
New Jersey4/17/2024 0:000.635
Los Angeles4/17/2024 0:000.635
Washington DC4/17/2024 0:000.549
San Francisco4/17/2024 0:000.3510
 California4/17/2024 0:000.1611
texas4/18/2024 0:00111
Miami4/18/2024 0:000.722
Philadelphia4/18/2024 0:000.722
North Carolina4/18/2024 0:000.634
New York4/18/2024 0:000.634
New England4/18/2024 0:000.634
New Jersey4/18/2024 0:000.634
Los Angeles4/18/2024 0:000.548
Washington DC4/18/2024 0:000.548
San Francisco4/18/2024 0:000.3510
 California4/18/2024 0:000.2611
2 REPLIES 2
nardtmo
Helper III
Helper III

thanks Greg. Another pespective  have two rankings, determine rank SA pt change in values and set the switch condition..  other words cant figure it out. Appreciate the help

Market IdRank_MR7_SARank_SA_ptif Rank_SA_pt row2=row1condition
Atlanta11FALSEfalse keep using col D1 values
Miami22FALSEfalse keep using col D2 values
Philadelphia32TRUEtrue and stay true use D2 until false
North Carolina42TRUEtrue and stay true use D2 until false
New Jersey53FALSEfalse keep using col D6 values
New England63TRUEtrue and stay true use D6 until false
New York73TRUEtrue and stay true use D6 until false
Washington DC84FALSEfalse keep using col D9 values
Los Angeles94TRUEtrue and stay true use D9 until false
San Francisco105FALSEfalse keep using col D10 values
Southern California116FALSEfalse keep using col D11 values
Greg_Deckler
Community Champion
Community Champion

@nardtmo Unfortunately you only get the options of Dense or Skip. You might try creating your own custom ranking: (3) To *Bleep* with RANKX! - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.