<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nested Calculated Items in Calculation Group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/2131610#M48922</link>
    <description>&lt;P&gt;Be carefull of using sideways recursion as it can cause a number of problems. Instead write the full expression again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But answering you question this can be achived though&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DIVIDE(
   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item A"), 
   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item B")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#sideways-recursion" target="_blank"&gt;https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#sideways-recursion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 08:05:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-13T08:05:35Z</dc:date>
    <item>
      <title>Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312355#M22930</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fairly new to calculation groups and want to know if the following is possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My calculation group has 2 calculated items A and B.&amp;nbsp; 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).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:48:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312355#M22930</guid>
      <dc:creator>mcolb88</dc:creator>
      <dc:date>2020-08-20T19:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312364#M22931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8673" data-lia-user-login="mcolb88" class="lia-mention lia-mention-user"&gt;mcolb88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use Variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/variables-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/variables-in-dax/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/dax-variables" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/guidance/dax-variables&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312364#M22931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T19:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312371#M22932</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 19:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1312371#M22932</guid>
      <dc:creator>mcolb88</dc:creator>
      <dc:date>2020-08-20T19:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1314471#M23015</link>
      <description>You can use one calc item in another in the same group. Just be careful not to introduce infinite loops.</description>
      <pubDate>Fri, 21 Aug 2020 11:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1314471#M23015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1936155#M42107</link>
      <description>&lt;P&gt;HI, Did you manage to acheive this? I'm trying to do the same....&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 13:35:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/1936155#M42107</guid>
      <dc:creator>WCONGRAVE</dc:creator>
      <dc:date>2021-07-03T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/2131610#M48922</link>
      <description>&lt;P&gt;Be carefull of using sideways recursion as it can cause a number of problems. Instead write the full expression again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But answering you question this can be achived though&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DIVIDE(
   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item A"), 
   CALCULATE(SELECTEDMEASURE(), 'CalcGroup'[CalcColumn] = "Calc item B")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#sideways-recursion" target="_blank"&gt;https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#sideways-recursion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 08:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/2131610#M48922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-13T08:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Calculated Items in Calculation Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/2348532#M59488</link>
      <description>&lt;P&gt;This was clutch! Thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 23:19:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-Calculated-Items-in-Calculation-Group/m-p/2348532#M59488</guid>
      <dc:creator>m_holly10</dc:creator>
      <dc:date>2022-02-18T23:19:26Z</dc:date>
    </item>
  </channel>
</rss>

