<?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 Wong calculation with calculate function (deja vu?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423609#M129639</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a problem with the calculate dax function, and i am pretty sure it is about filering within the formula, but since i am not used to DAX, i can't figure out how to do it right. This is for excel, but the problem is applicable in PBI as well. Wht would be the correct formula to achieve what i need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i copy paste the presentation i made&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;thanjks for your help!!&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 06:10:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-11T06:10:18Z</dc:date>
    <item>
      <title>Wong calculation with calculate function (deja vu?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423609#M129639</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a problem with the calculate dax function, and i am pretty sure it is about filering within the formula, but since i am not used to DAX, i can't figure out how to do it right. This is for excel, but the problem is applicable in PBI as well. Wht would be the correct formula to achieve what i need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i copy paste the presentation i made&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;thanjks for your help!!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 06:10:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423609#M129639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-11T06:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wong calculation with calculate function (deja vu?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423639#M129642</link>
      <description>&lt;P&gt;In the DAX expression, the expression is written as product of sums instead it should be sum of products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be &lt;STRONG&gt;Calculate(sumX(FactTable,FactTable[Workload]*related(TeamsComposition[capa])),.....)&lt;/STRONG&gt;&amp;nbsp; instead of &lt;STRONG&gt;Calculate(sum(FactTable[Workload])*sum(TeamsComposition[capa]), .....).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only possible if the relationship is one to many.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the problem continues, pleae share sample data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 06:41:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423639#M129642</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-11T06:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wong calculation with calculate function (deja vu?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423843#M129658</link>
      <description>&lt;P&gt;Thanks for your help Chirag.&lt;/P&gt;&lt;P&gt;I have the following error:&amp;nbsp;&lt;EM&gt;This formula is invalid or incomplete: 'The column 'TeamsComposition[capa]' either doesn't exist or doesn't have a relationship to any table available in the current context.'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think this is because the table &lt;EM&gt;TeamsComposition&amp;nbsp;&lt;/EM&gt;is not directly linked to &lt;EM&gt;FactTable&amp;nbsp;&lt;/EM&gt;(that's why I have to use calculate with the crossfilterfuntion), see the relationship bellow. I am attaching my file as well.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the link to the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/10mP-bUFeAbMSHAIRuUUUWvw-Kq8fABnx/edit?usp=drive_link&amp;amp;ouid=112902539628287263484&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank"&gt;https://docs.google.com/spreadsheets/d/10mP-bUFeAbMSHAIRuUUUWvw-Kq8fABnx/edit?usp=drive_link&amp;amp;ouid=112902539628287263484&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 08:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Wong-calculation-with-calculate-function-deja-vu/m-p/3423843#M129658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-11T08:24:35Z</dc:date>
    </item>
  </channel>
</rss>

