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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
sd22
Frequent Visitor

DAX - RankX Function

Hi All, Can we give a custom value in RANX function so that rank starts from a particular number instead of 1 ?

I want my Rank to start from 500 instead of 1.

The DAX that I'm using is 

index1 =
RANKX (
    FILTER (
        Sheet1,
        EARLIER ( Sheet1[First Characters])= Sheet1[First Characters]
        && EARLIER(Sheet1[Accounting Number]) <>  Sheet1[Accounting Number]
           
    ),
   Sheet1[Company Code],
    ,
    ASC,Dense
)
1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @sd22,

How about adding 499 to your measure?

Regards,

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

5 REPLIES 5
sd22
Frequent Visitor

Hi All,

 

I have a column named pp having numeric values 0 till 12. This pp column is acting as a slicer. If I select any value say 5 from the pp slicer then I want to have a calculated column which will contain values 0,1,2,3,4,5 in a row wise fashion. Can anyone help me with the dax plase ?

 

Thanks & Regards

Sd22

Payeras_BI
Solution Sage
Solution Sage

Hi @sd22,

How about adding 499 to your measure?

Regards,

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Hi Payeras,

While implmenting the logic I'm getting the below error saying "There is not enough memory to complete this operation. PLease try again later". As the table has more than 7.6 Million rows and I have also tried it through creating summarize table. The summarize table has also got more than 600K records and it shows the same error . Can you help me regarding this ?
MicrosoftTeams-image (2).png


MicrosoftTeams-image (2).png

 

Regards
SD

Hi Payeras,

It worked .
Thanks a lot!!

Hi Payeras,
Sure 

Regads,
SD

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.