<?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 Filer Context of a calculated column in a pivot table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005706#M156610</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hi,&amp;nbsp; &amp;nbsp;I&amp;nbsp; have&amp;nbsp; a&amp;nbsp; &amp;nbsp;Caluculated column&amp;nbsp; equivalent sumproduct ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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; SUMX( Table1, Table1[Price]*Table1[Unit]) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fine, but when used in a pvot table I get back some very strange results,, so can someone explain or point to information&amp;nbsp;&lt;BR /&gt;&lt;!--    EndFragment     --&gt;&lt;/P&gt;&lt;P&gt;on how these incorrect or at least unwanted results are&amp;nbsp; being calcuated, the actural result is 2267?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please don't suggest a measure, that will not help me unserstand whats happening here &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2024 17:46:13 GMT</pubDate>
    <dc:creator>Dicken</dc:creator>
    <dc:date>2024-06-23T17:46:13Z</dc:date>
    <item>
      <title>Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005706#M156610</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Hi,&amp;nbsp; &amp;nbsp;I&amp;nbsp; have&amp;nbsp; a&amp;nbsp; &amp;nbsp;Caluculated column&amp;nbsp; equivalent sumproduct ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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; SUMX( Table1, Table1[Price]*Table1[Unit]) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fine, but when used in a pvot table I get back some very strange results,, so can someone explain or point to information&amp;nbsp;&lt;BR /&gt;&lt;!--    EndFragment     --&gt;&lt;/P&gt;&lt;P&gt;on how these incorrect or at least unwanted results are&amp;nbsp; being calcuated, the actural result is 2267?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please don't suggest a measure, that will not help me unserstand whats happening here &lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Richard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 17:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005706#M156610</guid>
      <dc:creator>Dicken</dc:creator>
      <dc:date>2024-06-23T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005717#M156611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586364" data-lia-user-login="Dicken" class="lia-mention lia-mention-user"&gt;Dicken&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;from what i understand, the pivot table is doing sum of the calculated column 1, Look at the below table and can you confirm that the&amp;nbsp; occurence of item in original table is equal to column D?&amp;nbsp;&amp;nbsp;&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;&lt;BR /&gt;Let me know if this helps or feel free to share the sample file to have a look at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;&lt;I&gt;Accept it as the solution&amp;nbsp;to help the others find it more quickly. Appreciate you kudos!!&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005717#M156611</guid>
      <dc:creator>NaveenGandhi</dc:creator>
      <dc:date>2024-06-23T18:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005723#M156612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="586364" data-lia-user-login="Dicken" class="lia-mention lia-mention-user"&gt;Dicken&lt;/a&gt;&amp;nbsp;-As you know, calculated columns are computed row-by-row and are static, meaning they don't change based on filters in the pivot table.&lt;/P&gt;&lt;P&gt;where as this could lead to unexpected results if the underlying data model or relationships are not correctly configured. as we need to verifying data and model relationships should help identify the issue.&lt;/P&gt;&lt;P&gt;If you need dynamic calculations based on the pivot table context, you would generally use measures, but as you've requested, this explanation focuses on understanding calculated columns..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you are using the calculated column: directly you can use the calculation as below , &lt;STRONG&gt;no need to add sumx function.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated Column = &lt;STRONG&gt;Table1[Price] * Table1[Unit]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you mentioned the above expected result &lt;SPAN&gt;2267possible issue with data&lt;/SPAN&gt;&amp;nbsp;, as i mentioned above&amp;nbsp;&amp;nbsp;&amp;nbsp;basically calculated columns do not change based on the filters or slicers applied in a pivot table. This means they are static once calculated, which might not reflect the desired behavior when interacting with other data.&lt;/P&gt;&lt;P&gt;while doing the pivot table is correctly aggregating the calculated column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope the above expaination is clear .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005723#M156612</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-23T18:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005727#M156613</link>
      <description>&lt;P&gt;Hi, I cna't do this right now, I acutually deleted the example, but tomorrow I will replicate it and do some counting,&amp;nbsp;&lt;BR /&gt;that does&amp;nbsp; seeem like the reason, it's a bit lke the average aggreation problem when you have duplicate rows,&amp;nbsp;&lt;BR /&gt;will let you know, thank you for replying ,&amp;nbsp;&lt;BR /&gt;Richard&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005727#M156613</guid>
      <dc:creator>Dicken</dc:creator>
      <dc:date>2024-06-23T18:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005732#M156614</link>
      <description>&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:22:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005732#M156614</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-23T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filer Context of a calculated column in a pivot table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005738#M156615</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Thanks, that is whats happening,&lt;BR /&gt;Richard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 18:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filer-Context-of-a-calculated-column-in-a-pivot-table/m-p/4005738#M156615</guid>
      <dc:creator>Dicken</dc:creator>
      <dc:date>2024-06-23T18:26:26Z</dc:date>
    </item>
  </channel>
</rss>

