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
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
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!

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.