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

 

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

Top Solution Authors