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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Naveennegi119
Helper III
Helper III

Count data

Hi All,

 

I want to count in sequence but using many dax or create new column i get duplicate sequence no. in duplicate data see Below:-

 

duplicate Count.JPG

 

 I want count see below:-

sequence count.JPG

Regards,

NICK

3 ACCEPTED SOLUTIONS

Hi @Naveennegi119

 

First add an Index Column in your Table from the Query Editor >>"Add Column" tab

 

Then you can use this formula

 

Expected Situation 1 =
RANKX (
    FILTER ( Table1, Table1[Sub] = EARLIER ( Table1[Sub] ) ),
    Table1[Value]
        - Table1[Index] / 1000,
    ,
    DESC,
    DENSE
)

View solution in original post

@Naveennegi119

 

And this for expected situation 2

 

Expected Situation 2 =
RANKX ( Table1, Table1[Value] - Table1[Index] / 1000,, DESC, DENSE )

View solution in original post

5 REPLIES 5
Naveennegi119
Helper III
Helper III

Hi All,

 

I think right now there is no solution of this situation.

That's why no body answering.

Smiley SadSmiley SadSmiley Sad

 

 

regards,

NICK

Hi @Naveennegi119

 

First add an Index Column in your Table from the Query Editor >>"Add Column" tab

 

Then you can use this formula

 

Expected Situation 1 =
RANKX (
    FILTER ( Table1, Table1[Sub] = EARLIER ( Table1[Sub] ) ),
    Table1[Value]
        - Table1[Index] / 1000,
    ,
    DESC,
    DENSE
)

@Naveennegi119

 

And this for expected situation 2

 

Expected Situation 2 =
RANKX ( Table1, Table1[Value] - Table1[Index] / 1000,, DESC, DENSE )

Hi @Zubair_Muhammad,

 

Thanks for sharing idea,

 

it's working fine for me,

 

 

Regards,

NICK

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors