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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Calculated column

Greetings,

 

Tables:

 

2016 Rebate
2017 Rebate
sales

 

I have this this Calculated column:

 

Rebate 2016b = CALCULATE(
SUMx(
Filter(
sales,
sales[year]=2016),
sales[Rebatable]*related('2016 Rebate'[Percent%])))

 

When I attempt to replicate it to access 2017 Values:

 

Rebate 2017b = CALCULATE(
SUMx(
Filter(
sales,
sales[year]=2017),
sales[Rebatable]*related('2017 Rebate'[percent])))

 

I get this error regarding circular dependency:

 

A circular dependency was detected: sales[Rebate 2017b], sales[Rebate 2016b], sales[Rebate 2017b].

 

Can you point me to the error of my ways???

 

Regards,

 

1 ACCEPTED SOLUTION
DAX0110
Resolver V
Resolver V

Hi @Anonymous,

 

I'd suggest one of two ways to work around this error:

 

(1) rewrite the calculated columns to remove the CALCULATE:

   Rebate 2016b = IF( sales[year]=2016,  sales[Rebatable] * related('2016 Rebate'[Percent%]) )

   Rebate 2017b = IF( sales[year]=2017,  sales[Rebatable] * related('2017 Rebate'[Percent%]) )

, or

(2)  remove these calculated columns from the Sales table and change them into measures.

 

 

 

 

View solution in original post

2 REPLIES 2
DAX0110
Resolver V
Resolver V

Hi @Anonymous,

 

I'd suggest one of two ways to work around this error:

 

(1) rewrite the calculated columns to remove the CALCULATE:

   Rebate 2016b = IF( sales[year]=2016,  sales[Rebatable] * related('2016 Rebate'[Percent%]) )

   Rebate 2017b = IF( sales[year]=2017,  sales[Rebatable] * related('2017 Rebate'[Percent%]) )

, or

(2)  remove these calculated columns from the Sales table and change them into measures.

 

 

 

 

Anonymous
Not applicable

Thank you - lots to learn, often quoted

 

"DAX is simple, but it is not easy!"

 

Best

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.