<?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: Error message in  DAX while using Summarize in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-in-DAX-while-using-Summarize/m-p/4355318#M58932</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/497882"&gt;@smishra99acres&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Summarize function creates a table.&lt;/P&gt;&lt;P&gt;You cannot use it by itself in a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use New Table to create a table using the summarize function:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamWiseOwl_0-1736343376993.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1223508i8ABD0C2D32DA2C3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamWiseOwl_0-1736343376993.png" alt="SamWiseOwl_0-1736343376993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use it in a measure, you need to do something with the table.&lt;/P&gt;&lt;P&gt;AggregateX functions like MaxX, AverageX and SumX let you aggregate the rows of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here for example I am using Summarize to calculate for each Quantity what the Sum of Price is.&lt;/P&gt;&lt;P&gt;Then using AggergateX to return the overall average.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamWiseOwl_1-1736343496672.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1223510i8792DCAA5243418A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamWiseOwl_1-1736343496672.png" alt="SamWiseOwl_1-1736343496672.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 13:38:50 GMT</pubDate>
    <dc:creator>SamWiseOwl</dc:creator>
    <dc:date>2025-01-08T13:38:50Z</dc:date>
    <item>
      <title>Error message in  DAX while using Summarize</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-in-DAX-while-using-Summarize/m-p/4354845#M58929</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smishra99acres_0-1736328221631.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1223388i2C2C13D8EDBAF8C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smishra99acres_0-1736328221631.png" alt="smishra99acres_0-1736328221631.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 09:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-message-in-DAX-while-using-Summarize/m-p/4354845#M58929</guid>
      <dc:creator>smishra99acres</dc:creator>
      <dc:date>2025-01-08T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in  DAX while using Summarize</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-message-in-DAX-while-using-Summarize/m-p/4355318#M58932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/497882"&gt;@smishra99acres&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Summarize function creates a table.&lt;/P&gt;&lt;P&gt;You cannot use it by itself in a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use New Table to create a table using the summarize function:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamWiseOwl_0-1736343376993.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1223508i8ABD0C2D32DA2C3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamWiseOwl_0-1736343376993.png" alt="SamWiseOwl_0-1736343376993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use it in a measure, you need to do something with the table.&lt;/P&gt;&lt;P&gt;AggregateX functions like MaxX, AverageX and SumX let you aggregate the rows of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here for example I am using Summarize to calculate for each Quantity what the Sum of Price is.&lt;/P&gt;&lt;P&gt;Then using AggergateX to return the overall average.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamWiseOwl_1-1736343496672.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1223510i8792DCAA5243418A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamWiseOwl_1-1736343496672.png" alt="SamWiseOwl_1-1736343496672.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 13:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-message-in-DAX-while-using-Summarize/m-p/4355318#M58932</guid>
      <dc:creator>SamWiseOwl</dc:creator>
      <dc:date>2025-01-08T13:38:50Z</dc:date>
    </item>
  </channel>
</rss>

