<?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: calculated column row subtotals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1773522#M37159</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Check out these links it may help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-Column-calculation-based-on-Slicer-Selection/m-p/134276" target="_self"&gt;Link 1&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-Column-calculation-based-on-Slicer-multiple-selection/m-p/245305" target="_self"&gt;Link 2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 05:33:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-08T05:33:32Z</dc:date>
    <item>
      <title>calculated column row subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1769823#M36997</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've&amp;nbsp; created a calculated column (combined kg) with the following DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Combined kg = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(Sheet1[Department] = "A",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sheet1[planned KG],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM(Sheet1[planned KG]), FILTER(Sheet1, Sheet1[Department] = "B" &amp;amp;&amp;amp; Sheet1[Contract + line] = "123456 789")) -&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM(Sheet1[planned KG]), FILTER(Sheet1, Sheet1[Department]= "A" &amp;amp;&amp;amp; Sheet1[Contract + line] = "123456 789"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;it gives me the result presented in the table:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for this contract the dax code works perfectly but for the whole table i need a dynamic filter on&amp;nbsp;&amp;nbsp;"contract + line"&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Context&amp;nbsp; info: The main contract is given by department B. If department A gives a vendor an underlying contract the number of kilo's is reduced on contract from department B.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 11:56:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1769823#M36997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T11:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column row subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1771227#M37066</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;If I get you correctly&amp;nbsp;you want to change the "Contract + Line" value dynamically as per filter selection?&lt;BR /&gt;If yes you can use the SELECTEDVALUE in measure.&lt;BR /&gt;Please let me know if you're expecting something else.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 05:24:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1771227#M37066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T05:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column row subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1771361#M37069</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not used for a measure but for a calculated column. In my table i have multible contract from different contracts. that's why i need a dynamic filter on contract+line and department.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i use the SELECTEDVALUE after the &amp;amp;&amp;amp; operator an error accured.&amp;nbsp; Can&amp;nbsp; you show me the dax code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gr&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 06:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1771361#M37069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-07T06:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculated column row subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1773522#M37159</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;Check out these links it may help you.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-Column-calculation-based-on-Slicer-Selection/m-p/134276" target="_self"&gt;Link 1&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-Column-calculation-based-on-Slicer-multiple-selection/m-p/245305" target="_self"&gt;Link 2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 05:33:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculated-column-row-subtotals/m-p/1773522#M37159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-08T05:33:32Z</dc:date>
    </item>
  </channel>
</rss>

