<?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 how to Sum between two columns dynamically in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700808#M81749</link>
    <description>&lt;P class=""&gt;Hi all,&lt;/P&gt;&lt;P class=""&gt;I was trying to figure out a measure which will be able to sum between two columns which are variable.&lt;/P&gt;&lt;P class=""&gt;For example I have a report which columns are Period 1, Period 2, Period 3, Period 4.....Period 13.&lt;/P&gt;&lt;P class=""&gt;I want to be able to sum between 2 variable columns.&lt;/P&gt;&lt;P class=""&gt;For example if my current period is say Period 5,&lt;/P&gt;&lt;P class=""&gt;I want to be able to add columns between Period 3 to Period 5.&lt;/P&gt;&lt;P class=""&gt;And next period if I am in Period 6,&lt;/P&gt;&lt;P class=""&gt;I would want to add between period 3 to Period 6.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I would like to change the benchmark period (Period 3 in the example) and current period dynamically.&lt;/P&gt;&lt;P class=""&gt;Is it possible?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Like if user input somehow what the current period is and benchmark period.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Any help would be appreciated greatly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 15:32:16 GMT</pubDate>
    <dc:creator>UrAvgWally</dc:creator>
    <dc:date>2022-08-15T15:32:16Z</dc:date>
    <item>
      <title>how to Sum between two columns dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700808#M81749</link>
      <description>&lt;P class=""&gt;Hi all,&lt;/P&gt;&lt;P class=""&gt;I was trying to figure out a measure which will be able to sum between two columns which are variable.&lt;/P&gt;&lt;P class=""&gt;For example I have a report which columns are Period 1, Period 2, Period 3, Period 4.....Period 13.&lt;/P&gt;&lt;P class=""&gt;I want to be able to sum between 2 variable columns.&lt;/P&gt;&lt;P class=""&gt;For example if my current period is say Period 5,&lt;/P&gt;&lt;P class=""&gt;I want to be able to add columns between Period 3 to Period 5.&lt;/P&gt;&lt;P class=""&gt;And next period if I am in Period 6,&lt;/P&gt;&lt;P class=""&gt;I would want to add between period 3 to Period 6.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I would like to change the benchmark period (Period 3 in the example) and current period dynamically.&lt;/P&gt;&lt;P class=""&gt;Is it possible?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Like if user input somehow what the current period is and benchmark period.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Any help would be appreciated greatly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:32:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700808#M81749</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-15T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to Sum between two columns dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700876#M81761</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426650" data-lia-user-login="UrAvgWally" class="lia-mention lia-mention-user"&gt;UrAvgWally&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes possible but depends on the your model, existing relationships, current filter context. I can only guess that you have a matrix visual were you have the periods on the row or on the columns and a measure (or summarized column) in the values. I don't know if they belong to the same table? If you have a Date table? Any relationships? Any of my assumptions is correct?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 15:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700876#M81761</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to Sum between two columns dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700920#M81764</link>
      <description>&lt;P&gt;Hiya! The above column's are in a raw data file, no filters or existing relationships. I will try explaining my dataset.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;So I want to create a table which one column is the Funder and the other would be the sum , sum being COWD project to date + Period 3 + Period 4 + Period 5. I would like to have an Option to determine what the current period is , and what the base line period is and sum everything in between. So hypothetically if I am in Period 5 atm, I want to be able to sum Period 4 and Period 5. .. If I am in Period 8 and I chose my baseline period to be Period 6, I want to be able to add Period 7 and Period 8 and Cowd Project to date.&lt;BR /&gt;&lt;BR /&gt;So it would be nbice to be able to chose my current period and baseline period and add dynamically like that.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:16:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700920#M81764</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-15T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to Sum between two columns dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700989#M81769</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426650" data-lia-user-login="UrAvgWally" class="lia-mention lia-mention-user"&gt;UrAvgWally&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In order to do that the periods have to attributes in a one column [Period]. In order to do that you need to unpivot all the period columns using power query. It is a one click operation &amp;gt;&amp;gt; select the columns that need to be unpivoted, right click and select "Unpivot columns". But &lt;STRONG&gt;PLEASE BECAREFUL&lt;/STRONG&gt; if you have large data, your file might crash. So please before doing anything &lt;STRONG&gt;PLEASE KEEP A BACKUP&lt;/STRONG&gt; copy of your file. Once you do that, please let me know in order to guide you through the next steps.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:59:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2700989#M81769</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-15T16:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to Sum between two columns dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2702581#M81855</link>
      <description>&lt;P&gt;Hiya &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;Thank you for your time!&lt;BR /&gt;I unpivoted those periods, but it makes columns like COWD repeat itself. Which will make my other calculations harder. For example I planned on doing sum(Cowd)-sum(Forecast) to get variances. But since this duplicates the figures, would not be able to do so easily. Is there a way to unpivot to a seperate query just that extract?Also after unpivoting , what steps should be used to get my desired output of adding between two variable periods :)?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 09:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-Sum-between-two-columns-dynamically/m-p/2702581#M81855</guid>
      <dc:creator>UrAvgWally</dc:creator>
      <dc:date>2022-08-16T09:09:48Z</dc:date>
    </item>
  </channel>
</rss>

