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! Request now

Reply
sspk
Frequent Visitor

Index value shows empty in the table view component?

Hello Team,

I am trying to display 15 rows per page in table. But as of now it shows only 14 records.

 

PageNumbers_wikiiiii = GENERATESERIES(1, 1000, 1)
RowsPerPage_wiki = 15
 
DynamicRowNumber_wikiii =
VAR _tableToRank =
    FILTER(
        ALLSELECTED('wiki_pages_trending_pop_points'),
        NOT(ISBLANK('wiki_pages_trending_pop_points'[Index])) // Exclude rows where Index is blank
    )
RETURN
    RANKX(
        _tableToRank,
        CALCULATE(MAX('wiki_pages_trending_pop_points'[Index])),
        ,
        ASC, // Sort by Index in ascending order
        SKIP // Use SKIP for unique, sequential ranks (1, 2, 3...)
    )
 
 
Power_Query_Editor.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

table display.png

 

 

 

 

 

 

 

Table_Image.png

 

 

 

 

 

 

 

 

 

 

 

First index values is always empty or null it shows in the table as shown in the diagram above. In my Power Query View I can see the Index column and data type as Whole Number. There is no Empty or null.

But i use the same column in the Field value it shows empty.?

 

Thanks and Regards,

Siva

1 ACCEPTED SOLUTION

HI @v-pgoloju ,

Thank you for your reply.Yes you are correct RANKX is not calculated properly. So created a calculated column in the same table where index is created using Power Query Editor. for the Table,
DRW  = 

RANKX(
    ALL('wiki_pages_trending_pop_points'),
    'wiki_pages_trending_pop_points'[PopPoints] + 0.000001 * 'wiki_pages_trending_pop_points'[Index],
    ,
    DESC,   // PopPoints descending
    DENSE   // consecutive ranks, no skipped numbers
)
Both the column values are in the same Table. Now it looks fine,
DY_wiki_1.png
 
 
 
 
 
 
 
Thank you.

 

View solution in original post

3 REPLIES 3
v-pgoloju
Community Support
Community Support

Hi @sspk,

 

Great to hear that it’s working as expected on your end! If one of the responses resolved your issue, please consider marking it as the accepted solution. It will be helpful for others in the community who may face a similar issue.

 

Thanks & Regards,

Prasanna Kumar

 

v-pgoloju
Community Support
Community Support

Hi @sspk,

 

The ranking measure (RANKX) isn’t finding the first record properly in the current filter context. To fix it, make sure you’re showing the actual Index column in the table, not the ranking measure. If the issue is in the measure, modify it so it directly uses the selected index value for each row this ensures every row, including the first one, gets a rank. Also, if you’re using pagination, use the updated measure for filtering but display the real Index column to avoid blanks. Try below measure to fix the issue.

 

DRN =
VAR index = SELECTEDVALUE('wiki_pages_trending_pop_points'[Index])

VAR tableToRank =FILTER(ALLSELECTED('wiki_pages_trending_pop_points'),
        NOT(ISBLANK('wiki_pages_trending_pop_points'[Index])))
RETURN
IF( NOT(ISBLANK(_index)),
    RANKX(tableToRank,
        'wiki_pages_trending_pop_points'[Index],,ASC,SKIP))

 

Thanks & Regards,

Prasanna Kumar

HI @v-pgoloju ,

Thank you for your reply.Yes you are correct RANKX is not calculated properly. So created a calculated column in the same table where index is created using Power Query Editor. for the Table,
DRW  = 

RANKX(
    ALL('wiki_pages_trending_pop_points'),
    'wiki_pages_trending_pop_points'[PopPoints] + 0.000001 * 'wiki_pages_trending_pop_points'[Index],
    ,
    DESC,   // PopPoints descending
    DENSE   // consecutive ranks, no skipped numbers
)
Both the column values are in the same Table. Now it looks fine,
DY_wiki_1.png
 
 
 
 
 
 
 
Thank you.

 

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
Top Kudoed Authors