Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Nested Calculated Items in Calculation Group



Fairly new to calculation groups and want to know if the following is possible. 


My calculation group has 2 calculated items A and B.  I want to get a percentage, and add a third item C = DIVIDE (A, B). My question is if there is a way to reference the calculation items in the expression for C or do I need to repeat the expression in C, as in DIVIDE ( A expr, B expr). 


Reason I ask is for maintainability, if I change A for example, I would need to change the A expression in C, otherwise I would be off. Also, the expression for my B item is quite lengthy and want to keep it easier to read.



New Member

This was clutch! Thanks @gronnerup 

Advocate I
Advocate I

Be carefull of using sideways recursion as it can cause a number of problems. Instead write the full expression again.


But answering you question this can be achived though

   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item A"), 
   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item B")


Advocate I
Advocate I

HI, Did you manage to acheive this? I'm trying to do the same....

Community Champion
Community Champion

Hi @mcolb88 ,


Use Variables.


Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

I undestand the use of variables, I don't want to repeat the expression in the calculation of item C, I simply want to reference another calculated item. Is that possible?



Not applicable

You can use one calc item in another in the same group. Just be careful not to introduce infinite loops.

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors