<?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: Calculation Group Syntax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2723218#M83137</link>
    <description>&lt;P&gt;The syntax is wrong. You can't do AVERAGE( [Measure] ). AVERAGE works only with columns of a base table. Please see &lt;A href="https://dax.guide/average" target="_blank" rel="noopener"&gt;https://dax.guide/average&lt;/A&gt;. Besides, what would that mean? Averaging a measure... over what? To average something you have to indicate what you're averaging over and your formula does not state it.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 12:10:21 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-08-24T12:10:21Z</dc:date>
    <item>
      <title>Calculation Group Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2721652#M83026</link>
      <description>&lt;P&gt;I am trying to create calculation items but I cant create them, it only send -1 value, I think I am missing the SELECTEDMEASURE () thing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show me an example with the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'BV37CC'&lt;/SPAN&gt;&lt;SPAN&gt;[CONTRIBUTION COST]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'BV37CC'&lt;/SPAN&gt;&lt;SPAN&gt;[CONTRIBUTION COST]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;20000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'BV37CC'&lt;/SPAN&gt;&lt;SPAN&gt;[CONTRIBUTION COST]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;21000&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Aug 2022 22:55:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2721652#M83026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-23T22:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Group Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2723218#M83137</link>
      <description>&lt;P&gt;The syntax is wrong. You can't do AVERAGE( [Measure] ). AVERAGE works only with columns of a base table. Please see &lt;A href="https://dax.guide/average" target="_blank" rel="noopener"&gt;https://dax.guide/average&lt;/A&gt;. Besides, what would that mean? Averaging a measure... over what? To average something you have to indicate what you're averaging over and your formula does not state it.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 12:10:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2723218#M83137</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-24T12:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Group Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2723990#M83197</link>
      <description>&lt;P&gt;I am trying to perform a calculation group based in the following tables:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am using multiple formulas for the table in the right and I need all those table together in a single one that why I am using calculation groups, for the tables on the right I am using the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Num rows 20-21k = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt; ( 'BV37CC' ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'BV37CC'[CONTRIBUTION COST] &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;20000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&g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/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Both calculations are to get the count and avg of numbers of the table on the left,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In calculation group I am creating a calculation item with the following formula:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;SELECTEDMEASURE&lt;/FONT&gt; &lt;FONT&gt;()&lt;/FONT&gt;&lt;FONT&gt;, 'BV37CC'[CONTRIBUTION COST] &amp;gt;= &lt;/FONT&gt;&lt;FONT&gt;20000&lt;/FONT&gt;&lt;FONT&gt; &amp;amp;&amp;amp; 'BV37CC'[CONTRIBUTION COST] &amp;lt;= &lt;/FONT&gt;&lt;FONT&gt;21000&lt;/FONT&gt;&lt;FONT&gt; )&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;After putting the formula I tried to create the calculation group in a table in power bi with the Matrix but I think I am missing something:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a single table with all the multiple calculations from the right tables,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Aug 2022 17:05:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2723990#M83197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-24T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Group Syntax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2739553#M84135</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The average function should not be directly nested with selectedmeasure functions.&amp;nbsp;I'd like to suggest you create a variable with summarize function to apply the first aggregated, then you can use the iterator function to apply the second aggregated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_self"&gt;Measure Totals, The Final Word&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also take a look at the following links about calculated groups if helps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/calculation-groups/" target="_blank"&gt;Calculation Groups - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/articles/using-calculation-groups-to-selectively-replace-measures-in-dax-expressions/" target="_blank"&gt;Using calculation groups to selectively replace measures in DAX expressions - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regaerds,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 03:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-Group-Syntax/m-p/2739553#M84135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-01T03:46:49Z</dc:date>
    </item>
  </channel>
</rss>

