Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I have just created a measure which incorporates data from two different queries. I am now trying to use this measure to create two new columns using a slightly different filter based on existing columns. I am able to create the first of which by doing the following.
Solved! Go to Solution.
Hi @jstein91694 ,
You could refer to this blog: https://www.sqlbi.com/articles/understanding-circular-dependencies/
“Nevertheless, by using CALCULATE, we are asking to transform the current row context into a filter context and this modifies the dependency list.”
You could edit your both columns with FILTER().
SH Input (mmBTU) =
CALCULATE (
'GAHP-Trane-Canada'[GAHP Gas Input (mmBTU)],
FILTER (
'GAHP-Trane-Canada',
'GAHP-Trane-Canada'[GAHP Gas Use DELTA (cf)] > 0
&& 'GAHP-Trane-Canada'[0H AH Supply Air (F)] > 100
&& 'GAHP-Trane-Canada'[0E Hyd Supply Tank (F)] < 100
)
)DHW Input (mmBTU) =
CALCULATE (
'GAHP-Trane-Canada'[GAHP Gas Input (mmBTU)],
FILTER (
'GAHP-Trane-Canada',
'GAHP-Trane-Canada'[GAHP Gas Use DELTA (cf)] > 0
&& 'GAHP-Trane-Canada'[0H AH Supply Air (F)] > 100
&& 'GAHP-Trane-Canada'[0E Hyd Supply Tank (F)] > 100
)
)
Hi @jstein91694 ,
You could refer to this blog: https://www.sqlbi.com/articles/understanding-circular-dependencies/
“Nevertheless, by using CALCULATE, we are asking to transform the current row context into a filter context and this modifies the dependency list.”
You could edit your both columns with FILTER().
SH Input (mmBTU) =
CALCULATE (
'GAHP-Trane-Canada'[GAHP Gas Input (mmBTU)],
FILTER (
'GAHP-Trane-Canada',
'GAHP-Trane-Canada'[GAHP Gas Use DELTA (cf)] > 0
&& 'GAHP-Trane-Canada'[0H AH Supply Air (F)] > 100
&& 'GAHP-Trane-Canada'[0E Hyd Supply Tank (F)] < 100
)
)DHW Input (mmBTU) =
CALCULATE (
'GAHP-Trane-Canada'[GAHP Gas Input (mmBTU)],
FILTER (
'GAHP-Trane-Canada',
'GAHP-Trane-Canada'[GAHP Gas Use DELTA (cf)] > 0
&& 'GAHP-Trane-Canada'[0H AH Supply Air (F)] > 100
&& 'GAHP-Trane-Canada'[0E Hyd Supply Tank (F)] > 100
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.