Forum Discussion
RANKX Measure
- Anonymous8 years ago
Hi everyone!
Happy to say that is know working, and ashamed after discovering the problem.
The "Grupo" shown in the matrix, is from the facts table, not from the table "GruposIMS". I just changed the dimension of the matrix and the RANKX measure started to show real values.
Thanks for the help.
Anonymous
Hey!
I have to make presumptions concerning measures used in your IF/RANKX expression. When testing I used a table with salaries, and then I created a measure MsrSumSalary where I summed salaries:
MsrSumSalary = SUM(Salary[Salary])
I then created a RANKX expression , similar to yours:
Rank Salary =
IF(
[MsrSumSalary] <> 0,
RANKX(
ALLSELECTED(Salary),ROUND(Salary[MsrSumSalary],0)
)
)Here is a screenshot of my table:
HERE is a link to my .pbix file.
The biggest difference is with ALLSELECTED; you appeared to reference a column. When I changed to reference the table, all seemed okay.