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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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