<?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: Summarize function providing wrong results. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790535#M87597</link>
    <description>&lt;P&gt;It still provides wrong results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 20:14:11 GMT</pubDate>
    <dc:creator>PradneshSP</dc:creator>
    <dc:date>2022-09-23T20:14:11Z</dc:date>
    <item>
      <title>Summarize function providing wrong results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790090#M87575</link>
      <description>&lt;P&gt;I'm trying to summarize a table to display values by month&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[Div]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[Code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[Brands]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[Billing Month_Year]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[Type]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Value"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales_View&lt;/SPAN&gt;&lt;SPAN&gt;[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The SUM is calculated wrong. It's displaying more than expected value.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:50:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790090#M87575</guid>
      <dc:creator>PradneshSP</dc:creator>
      <dc:date>2022-09-23T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize function providing wrong results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790127#M87576</link>
      <description>&lt;P&gt;Don't use SUMMARIZE to add calculated columns, use ADDCOLUMNS instead&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ADDCOLUMNS (
    SUMMARIZE (
        Sales_View,
        Sales_View[Div],
        Sales_View[Code],
        Sales_View[Brands],
        Sales_View[Billing Month_Year],
        Sales_View[Type]
    ),
    "Value", CALCULATE( SUM ( Sales_View[VALUE] ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're interested, there's a &lt;A href="https://www.sqlbi.com/articles/all-the-secrets-of-summarize/" target="_self"&gt;SQL BI article&lt;/A&gt; about it.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:47:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790127#M87576</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-26T08:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize function providing wrong results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790535#M87597</link>
      <description>&lt;P&gt;It still provides wrong results&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 20:14:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2790535#M87597</guid>
      <dc:creator>PradneshSP</dc:creator>
      <dc:date>2022-09-23T20:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize function providing wrong results.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2795759#M87846</link>
      <description>&lt;P&gt;My mistake. I have edited my original post to include the required CALCULATE around the SUM.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-function-providing-wrong-results/m-p/2795759#M87846</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-26T08:48:04Z</dc:date>
    </item>
  </channel>
</rss>

