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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors