Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
liberty20
Frequent Visitor

Column not found error!!

Hi All,
I am getting an error "[Overdue] column not found in the below formula", obviously because [Overdue] is the calculated measure which I have created.
 
(A Ranking is the calculated column)
A Ranking =
VAR MaxOverdue = MAX('Table1'[Overdue])
VAR PMultiplier = MaxOverdue+20000
VAR FMultiplier = MaxOverdue+10000
VAR ValNoDebt = MAX('Table1'[Debtor A])
VAR Result=
RANKX(
All('Table1'),
'Table1'[Overdue] + 'Table1'[A PTP Breach(1-Y 0-N)]*PtpMultiplier + 'Table1'[A Followup Breach(1-Y 0-N)]* FollowupMultiplier + 'Table1'[A PTP Breach(1-Y 0-N)]*PtpValue+ ValNoDebt
)
Return
Result
 
To make this formula work I need to create calculated column for [Overdue].
When creating column for [Overdue] it is giving me a circular depedency error & wrong values in [Overdue] column.
 
For Reference :
Measure : 
Overdue = CALCULATE(SUMX(FILTER('Table1', 'Table1'[RG] = "31 - 60 Days" || 'Table1'[RG] ="1 - 30 Days" ||'Table1'[RG] = "61 - 90 Days" || 'Table1'[RG] ="> 91 Days"), 'Table1'[Outstanding Amount]))
 
Kindly help me to create calculated column for [Overdue] to get correct values in column, to make Ranking work & to avoid circular dependency.
 
Thanks in Advance!
 
 
2 REPLIES 2
liberty20
Frequent Visitor

@rbriga Thank you for your quick response!

I have tried above solution but it's not working in my case.

Still getting circular dependency error in my Ranking formula.

 

Kindly help me to create calculated column for MAX of Netoverdue (Note that Netoverdue is the calculated column I have created)

Netoverdue = measure1+measure2+measure3

rbriga
Impactful Individual
Impactful Individual

It Happens since it's not a column. If you're looking for the MAX Overdue among the rows in table 1, try:

VAR MAXOVERDUE = 
MAXX(
 Table1,
 [Overdue]
)

 

If you're looking for the max overdue among customers, try 

VAR MAXOVERDUE = 
MAXX(
 VALUES(Table1[Customer ID]),
 [Overdue]
)
-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.