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
jay_patel
Helper IV
Helper IV

How to divide a Measure with calculated column to get a calculated column

Hello All,
 
here is my dax to get calculated column but it's giving error of Circular dependency. Also attaching Screenshot for your refrence. please help me out or you can also give another trick.
 
Primary-sales = CALCULATE([Primary Sales1])/'SDirectSales'[CalculatedByOverForecast]
 
also I cant convert the column ""calculatedByOverForecast" into measure because it's using Earlier Function.Screenshot (27).png
 
 
Thanks in advance
4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Even if the Primary-sales measure works, you would not want it as a calculated column formula because they do not refresh when making slicer/filter selections.  Primary-sales should be written as a measure.  To get more specific help, share some data, explain the question and show the expected result. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-alq-msft
Community Support
Community Support

Hi, @jay_patel 

 

Could you show us more details about the measure? If possible, some sample data and expected results help a lot.

 

Best Regards

Allan

amitchandak
Super User
Super User

@jay_patel , Need to how you have calculated [Primary Sales1],[CalculatedByOverForecast], share calculation

Also check - https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

 

Try Like

Primary-sales = Divide([Primary Sales1], [CalculatedByOverForecast])

Didn't Worked. Still Getting Same error.

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.