<?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 Calculating sum of Sales in a given period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523736#M29775</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate sales per product from Expected selling start date and 4 month ahead.&lt;/P&gt;&lt;P&gt;How do I do that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have tried this measure, but it gives me an error.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volume 4 Month = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM('Fact Sales'[Volume]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERELATIONSHIP(Dim_Calendar[Date],'New Products'[Expected Selling Start Date]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESBETWEEN(Dim_Calendar[Date],'New Products'[Expected Selling Start Date],DATEADD('New Products'[Expected Selling Start Date],4,MONTH)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anybody help me?&amp;nbsp; I added a link to the test PBI file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="Calculating sum of Sales" href="https://drive.google.com/file/d/1QUCDwDFptavE_Vcl_VV6wOwo_NCzEc1k/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1QUCDwDFptavE_Vcl_VV6wOwo_NCzEc1k/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Below is a picture of what I would like to get.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Newbie Lotte&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 09:09:01 GMT</pubDate>
    <dc:creator>LotteLaugesen</dc:creator>
    <dc:date>2020-11-30T09:09:01Z</dc:date>
    <item>
      <title>Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523736#M29775</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate sales per product from Expected selling start date and 4 month ahead.&lt;/P&gt;&lt;P&gt;How do I do that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have tried this measure, but it gives me an error.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volume 4 Month = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM('Fact Sales'[Volume]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERELATIONSHIP(Dim_Calendar[Date],'New Products'[Expected Selling Start Date]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESBETWEEN(Dim_Calendar[Date],'New Products'[Expected Selling Start Date],DATEADD('New Products'[Expected Selling Start Date],4,MONTH)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anybody help me?&amp;nbsp; I added a link to the test PBI file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A title="Calculating sum of Sales" href="https://drive.google.com/file/d/1QUCDwDFptavE_Vcl_VV6wOwo_NCzEc1k/view?usp=sharing" target="_blank" rel="noopener"&gt;https://drive.google.com/file/d/1QUCDwDFptavE_Vcl_VV6wOwo_NCzEc1k/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Below is a picture of what I would like to get.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Newbie Lotte&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:09:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523736#M29775</guid>
      <dc:creator>LotteLaugesen</dc:creator>
      <dc:date>2020-11-30T09:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523821#M29778</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263569" data-lia-user-login="LotteLaugesen" class="lia-mention lia-mention-user"&gt;LotteLaugesen&lt;/a&gt; , not able to relate your comments with the with data, can you elaborate&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:38:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523821#M29778</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-30T09:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523865#M29779</link>
      <description>&lt;P&gt;For each product in New Products file I want sum of Volume from Fact Sales for 4 month after Expected selling start date. I only want to list the products in the New Products file, not any other product sold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Product100 it should sum volume from Fact Sales from 1st of January to end of 1st of April.&lt;/P&gt;&lt;P&gt;For Product200 it should sum volume from Fact Sales from 2nd of February to end 2nd of May&lt;/P&gt;&lt;P&gt;And so on.. Does this make it more clear?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:58:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523865#M29779</guid>
      <dc:creator>LotteLaugesen</dc:creator>
      <dc:date>2020-11-30T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523888#M29780</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263569" data-lia-user-login="LotteLaugesen" class="lia-mention lia-mention-user"&gt;LotteLaugesen&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;Volume 4 Month =&lt;BR /&gt;CALCULATE(SUM('Fact Sales'[Volume]),&lt;BR /&gt;USERELATIONSHIP(Dim_Calendar[Date],'New Products'[Expected Selling Start Date]),&lt;BR /&gt;DATESINPERIOD(Dim_Calendar[Date ],Min(Dim_Calendar[Date])+1,4,MONTH) )&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523888#M29780</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-30T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523901#M29781</link>
      <description>&lt;P&gt;Thank you for helping, but the measure shows a blank result.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:16:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1523901#M29781</guid>
      <dc:creator>LotteLaugesen</dc:creator>
      <dc:date>2020-11-30T10:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1524285#M29794</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="263569" data-lia-user-login="LotteLaugesen" class="lia-mention lia-mention-user"&gt;LotteLaugesen&lt;/a&gt; , Try this&lt;/P&gt;
&lt;P&gt;CALCULATE(CALCULATE(SUM('Fact Sales'[Volume]),&lt;BR /&gt;USERELATIONSHIP(Dim_Calendar[Date],'New Products'[Expected Selling Start Date])),&lt;BR /&gt;DATESINPERIOD(Dim_Calendar[Date ],Min(Dim_Calendar[Date])+1,4,MONTH) )&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:21:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1524285#M29794</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-30T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating sum of Sales in a given period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1524345#M29799</link>
      <description>&lt;P&gt;I have changed the measure to this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volume 4 Month = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM('Fact Sales'[Volume]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESINPERIOD(Dim_Calendar[Date],MIN('New Products'[Expected Selling Start Date]),4,MONTH))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And now I get the corrrect result.&lt;BR /&gt;Thanks for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-sum-of-Sales-in-a-given-period/m-p/1524345#M29799</guid>
      <dc:creator>LotteLaugesen</dc:creator>
      <dc:date>2020-11-30T13:47:04Z</dc:date>
    </item>
  </channel>
</rss>

