Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have Employees table, and I want to create a measure that ranks them by adding the values of Salary and Bonus together then rank them, Salary and Bonus are columns in the table.
I wrote this DAX:
Profit Rank = RANKX('Employee Listing',[Salary (USD)] + [Bonus], , DESC)
and Power BI gives me this error:
The value for 'Salary (USD)' cannot be determined. Either the column doesn't exist, or there is no current row for this column.
Solved! Go to Solution.
Hi
Is there some reason you created the Measure instead of the calculated column ?
your code is worked if you use it as a column.
Appreciate your Kudos and please select it if it is helps you
HI @MontherKH ,
I suggest this:
I think your columns Salary and Bonus are not saved in the same table Employee Listing.
So you can write Sum(Table[Salary USD]) + Sum(Table[Bonus]) in your Rankx expression or create a explicit measure before.
Furthermore i suggest to use ALL(Employee Listing'[Employee])
Profit Rank = RANKX(ALL('Employee Listing'[Employee]),sum('Table'[Salary (USD)]) + sum('Table'[Bonus]), , DESC)
Marco
They ARE in the same table, and I tried your formula but it gives all the employees rank 1
Are you using the all function?
Profit Rank = RANKX(ALL('Employee Listing'[Employee]),sum('Table'[Salary (USD)]) + sum('Table'[Bonus]), , DESC)
Hi
Is there some reason you created the Measure instead of the calculated column ?
your code is worked if you use it as a column.
Appreciate your Kudos and please select it if it is helps you
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 50 | |
| 41 | |
| 29 | |
| 22 |
| User | Count |
|---|---|
| 138 | |
| 121 | |
| 57 | |
| 37 | |
| 32 |