Forum Discussion

Ruedi007's avatar
Ruedi007
Frequent Visitor
6 years ago
Solved

RankX - Value cannot be determined Either the column does not exist or there is no current row

I try to use rankx on my dataset that is

 

StateInhabitantsCity
California3792621Los Angeles
Texas2325502Housten
Texas1345047Dallas
California1301617San Diego
California494665Fresco
Missouri314627St Louis
Missouri130752Columbia

 

according to some tutorials (1, 2) the dax for this is

 

Measure = rankx(ALLSELECTED(Sheet1), [Inhabitants],,1)
 

But even tho I use exact the same dax function with the same arguments I get the error:

 

The value for 'Inhabitants' cannot be determined. Either the column doesn't exist, or there is no current row for this column.

 

And I have no idea why that is. I changed the summarization setting to "Not summarized" but that did not change anything. In the forum ppl say that this error come from wronlgy mistaken Measure and Column Calculation but in the tutorials they all use Measure. 

 

 

 

Could anyone help me here to get this working?

 

Best!

 

3 Replies