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
Anonymous
Not applicable

Understanding of row context in detail with this example

I am trying to create the below calculated column to understand the row context in detail. 

 

Here I am trying to rank net value. The var net_value is used to get the current row in the table and var max_value is used to get list of all the rows greated than the currect net value and count rows in the end.

 

But this formula is giving blank return, Can anyone explain whats the error in the below formula.

 

Rank PO ITem =
var net_value = 'Table'[  Net value]
var max_value =
        FILTER(Table,
        'Table'[  Net value] > net_value
        )  
RETURN COUNTROWS(max_value)
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@Anonymous 

Nothing wrong. It should work. Double check that you are creating a calculated column in the same table that is referenced inside FILTER function 

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

@Anonymous 

Nothing wrong. It should work. Double check that you are creating a calculated column in the same table that is referenced inside FILTER function 

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.