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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

@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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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