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
Hello Everybody. Hope you can help me with this issue.
I created a calculated column with a simple code, as follows
EgrTotGen$Mix =
IF (
TrxCxP[IDMoneda] = "VES",
IF (
[TasaVentaAH] = 0,
DIVIDE ( TrxCxP[TOTAL GENERAL], [TasaMix], 0 ),
DIVIDE ( TrxCxP[TOTAL GENERAL], [TasaVentaAH], 0 )
),
TrxCxP[TOTAL GENERAL]
)
When I try to create another calculated column exactly as the previous one, but using another rate table, I get the Circular Dependency error.
EgrTotGen$BCV =
IF (
TrxCxP[IDMoneda] = "VES",
IF (
[TasaVentaAH] = 0,
DIVIDE ( TrxCxP[TOTAL GENERAL], [TasaVentaBCV], 0 ),
DIVIDE ( TrxCxP[TOTAL GENERAL], [TasaVentaAH], 0 )
),
TrxCxP[TOTAL GENERAL]
)
Solved! Go to Solution.
It is a complex issue.
There are exceptions to this, but it gets even more esoteric in how Power BI can find a unique field, and you cannot manually do this in Power BI at all. You can in SSAS and oddly enough, Excel's Power Pivot.
Bottom line, this is one of many reasons to not use calculated columns. Use measures instead.
In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
Creating a Dynamic Date Table in Power Query
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCreate Calculated column for one
& For Another one create measure.
or create measure instead of calculated column
It is a complex issue.
There are exceptions to this, but it gets even more esoteric in how Power BI can find a unique field, and you cannot manually do this in Power BI at all. You can in SSAS and oddly enough, Excel's Power Pivot.
Bottom line, this is one of many reasons to not use calculated columns. Use measures instead.
In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
Creating a Dynamic Date Table in Power Query
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThanks, buddy. You gave me the solution by mentioning that the problem was to my measure [TasaVentaAH]. I have replaced the measure with a column and already the model is working. In any way it is clear to me that I must study a lot on the subject. Best regards.
Francisco.
Apologyze for my poor english.
Yes @bsmartbkind - This is a small but critical thing in how Calculated Columns work. There are two chapters on CALCULATE and Context Transition in this book and this calc column circular reference issue is 2-3 pages in that section.
Glad I was able to help.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingMarch 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 |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |