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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Pravallika_L
Helper I
Helper I

Generate RowNumbers based on a column without any memory full error for loading the data in a visual

I did in the below way first to generate row numbers based on the index column, but it's working absolutely fine when filtered. But it's throwing error when i removed the filters and wanted to view complete data.
 
--> Visual Row = CALCULATE(COUNT( v_app_gilman_applicant[Index] ), FILTER (ALLSELECTED(v_app_gilman_applicant), v_app_gilman_applicant[Index] <= Max ( v_app_gilman_applicant[Index]) ))
 
--> Another way i took the max value in a variable but still it's the same behaviour. 
Row_num =
var num=maxx(v_app_gilman_applicant,v_app_gilman_applicant[Index])
return
CALCULATE(COUNT( v_app_gilman_applicant[Index] ), FILTER (ALLSELECTED(v_app_gilman_applicant), v_app_gilman_applicant[Index] <= num ))
 
Pravallika_L_0-1683265215038.png

 

 
--> I wanted to try using RANKX function but not able to see this index column. I am not sure that only measures will be used in RANKX function
 
Hope some one helps me on this. Any help much appreciated. Thankyou so much!!
 
@tamerj1 could you please help on the above measure
1 REPLY 1
tamerj1
Super User
Super User

Hi @Pravallika_L 
Please try

Visual Row =
COUNTROWS (
    FILTER (
        ALLSELECTED ( v_app_gilman_applicant[Index] ),
        v_app_gilman_applicant[Index] <= MAX ( v_app_gilman_applicant[Index] )
    )
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.