RANKX Calculated Column returning Circular Dependency

zapppsr

Board Regular
Joined
Aug 19, 2010
Messages
189
Hi!

I have a scenario here:

RANKING1.png



I used RANKX to rank 13 "Regionais" based on the Column "Crescimento":

MEASURE Ranking =
RANKX (
ALLEXCEPT( fCrescimento ;fCrescimento[Ano]);
CALCULATE ( MAX ( fCrescimento[Crescimento] ) );
;
;
DENSE
)


So far so Good. I got what I wanted about the results. It ranks correctly. The problem is that I'm using a MEASURE and I need a COLUMN Because I want to use the Rank 1, 2, 3 and so on to make a relationship with another table that has points for each ranking. And later on I will have to combine this points with other rankings in other tables... so I think it is better that they are visible in a column.

When I try to use this RANKX in a column, I get a circular dependency error.

Question: Can I have the result I want for the raking in a calculated column instead of a measure?


------------------------------------------

Crescimento is kinda complex:

COLUMN Crescimento =
VAR AA = fCrescimento[Ano] - 1

VAR ValorAC = CALCULATE(MAX(fCrescimento[Valor]))

VAR ValorAA =
CALCULATE(CALCULATE (
MAX ( fCrescimento[Valor] );
ALL ( fCrescimento );
VALUES ( fCrescimento[Regional] );
fCrescimento[Ano] = AA
))

VAR Cre = DIVIDE(ValorAC-ValorAA;abs(ValorAA))

RETURN Cre
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top