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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lawsonbe
Helper I
Helper I

subtracting two calculated columns

Subtraction question.PNG

 

I am trying to subtract two calculated columns. I tried a simple subtraction without the Calculate and Sum as well and that gave the same circular reference error. 

1 ACCEPTED SOLUTION

Resolved it by creating a measure for Absent and Present. Oddly, when I tried to delete the calculated column for Absent, the measures stopped working eventhough they no longer referenced the calculated absent column. Just happy I now have an accurate measure.

View solution in original post

5 REPLIES 5
PattemManohar
Community Champion
Community Champion

Can you try this please...

 

Present = Instructional_Date_Calendar[Enrolled] - Instructional_Date_Calendar[Absent]

 

Any sample data for replicating your error will be helpful... 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Here is a screenshot of the formula you suggested. I attempted to remove some inactive relationships to see if that was the problem. That had no effect. I hope you can see some of the data on this screenshot. I really think the error has something to do with the Enrolled column being a calculated column that is based on a table that is a union of two other tables that have no relationships established. Could that be it?

 

 

Subtraction question 2.PNG

@lawsonbe Still not clear, please post what is your actual input data look like and what are the calculated columns you created along with their expressions used. Anyway, you already posted what you want to see as output...





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Resolved it by creating a measure for Absent and Present. Oddly, when I tried to delete the calculated column for Absent, the measures stopped working eventhough they no longer referenced the calculated absent column. Just happy I now have an accurate measure.

Hi @lawsonbe,

It's pleasant that your problem has been solved, could you please mark your reply as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors