March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
i am new on powerbi. i am getting this error. Here is below my table.
GName | Year | Opening Stock | InQty | initemvaluee | Average Value | Closing Stock Value | Opening Stock Value |
Bahria Town | 2020 | 4,454 | 126,610,300 | 28,426 | 24,673,943 | - | |
Bahria Town | 2021 | 868 | 6,379 | 166,903,972 | 23,031 | 16,121,537 | - |
I am taking average from below dax
Average Value = (([initemvaluee]+[Opening Stock Value])/([inqtyy]+[Opening Stock]))
i want the closing stock value previous year in the field of opening stock value. but it gives me error of
A circular dependency was detected
Please help how it will
Do you call measure when you create a calculated column?Maybe you could consider creating a measure or re creating the corresponding calculated column from the previous measure
i have tried all but all in vain if you want the file i am attaching.
https://www.mediafire.com/file/pmb7u1thsag1kq1/Cost_of_goods_sold.pbix/file
I checked the file you provided and found no errors. Has the problem been solved?
This video from the gurus at SQLBI will probably prove useful:
Proud to be a Super User!
Paul on Linkedin.
i used your formula
getting same error
Try this instead:
AvgValue =
VAR _a = [ initemvaluee ] + [ Opening Stock ]
VAR _b = [ InQty ]+[ Opening Stock ]
RETURN
DIVIDE(_a, _b)
I have tried your formula but it give same error
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
122 | |
91 | |
74 | |
58 | |
53 |
User | Count |
---|---|
196 | |
119 | |
107 | |
68 | |
64 |