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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Naveennegi119
Helper III
Helper III

Index data highest to lowest

Hi all,

 

 

Data  Expect result
SubValueIndex  SubValueIndex
ABC30   ABC304
ABC13   ABC139
ABC44   ABC442
ABC25   ABC255
ABC37   ABC373
ABC11   ABC1110
ABC16   ABC168
ABC47   ABC471
ABC22   ABC227
ABC23   ABC236
DEF24   DEF247
DEF28   DEF285
DEF28   DEF286
DEF33   DEF334
DEF10   DEF1010
DEF22   DEF229
DEF49   DEF491
DEF37   DEF373
DEF44   DEF442
DEF24   DEF248
GHI10   GHI1010
GHI37   GHI372
GHI43   GHI431
GHI14   GHI149
GHI24   GHI246
GHI17   GHI178
GHI36   GHI363
GHI22   GHI227
GHI32   GHI324
GHI30   GHI305

 

Advise me how to do this.

what I use measure or create new column.

 

regards,

NICK

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Naveennegi119

 

You can add a new calculated column using the following formula.

 

New Column = 
    RANKX(
        FILTER('Table1',
            'Table1'[Sub]=EARLIER('Table1'[Sub])
            ),
            'Table1'[Value]
            )

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @Naveennegi119

 

You can add a new calculated column using the following formula.

 

New Column = 
    RANKX(
        FILTER('Table1',
            'Table1'[Sub]=EARLIER('Table1'[Sub])
            ),
            'Table1'[Value]
            )

image.png


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi @Phil_Seamark,

 

Thanks for fast reply.

 

it's working with small issue.

 

it's giving same no. for duplicate data.

 

index.JPG

Note:- Change few data to show you result.

 

any advise for that.

Regards,

NICK

 

Anonymous
Not applicable

Hi @Naveennegi119,

 

Actually, current power bi will rank duplicate records as same ranking number.
AFAIK, power bi not contains row index and column index, so it is impossible to ranking duplicate records as different numbers.

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors