<?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 if i select a date on slicer, calculate value including dates before selected date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-i-select-a-date-on-slicer-calculate-value-including-dates/m-p/2759897#M85508</link>
    <description>&lt;P&gt;hello guys i want a measure to calculate my net profit from my selected date on slicer to the initial date:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example my datetable starts on august 1st, if i select october, i want the measure to calculate net profit from august to october, if i select november, i want it to calculate from august to november...&lt;BR /&gt;&lt;BR /&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;my date slicer is like this so if i choose october i want the calculation to include august to october. i know i can select it aall but im tryin to create another calculation that requires me to create this measure&lt;/P&gt;</description>
    <pubDate>Sat, 10 Sep 2022 21:53:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-10T21:53:06Z</dc:date>
    <item>
      <title>if i select a date on slicer, calculate value including dates before selected date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-i-select-a-date-on-slicer-calculate-value-including-dates/m-p/2759897#M85508</link>
      <description>&lt;P&gt;hello guys i want a measure to calculate my net profit from my selected date on slicer to the initial date:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example my datetable starts on august 1st, if i select october, i want the measure to calculate net profit from august to october, if i select november, i want it to calculate from august to november...&lt;BR /&gt;&lt;BR /&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;my date slicer is like this so if i choose october i want the calculation to include august to october. i know i can select it aall but im tryin to create another calculation that requires me to create this measure&lt;/P&gt;</description>
      <pubDate>Sat, 10 Sep 2022 21:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-i-select-a-date-on-slicer-calculate-value-including-dates/m-p/2759897#M85508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-10T21:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: if i select a date on slicer, calculate value including dates before selected date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-i-select-a-date-on-slicer-calculate-value-including-dates/m-p/2759951#M85513</link>
      <description>&lt;P&gt;i found a solution wit the emasure below :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;before = VAR seldate = MAX(DateTable[Date])
RETURN
CALCULATE([Net Profit],DATESBETWEEN(DateTable[Date],"8/1/2022",seldate))&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Sep 2022 23:33:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/if-i-select-a-date-on-slicer-calculate-value-including-dates/m-p/2759951#M85513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-10T23:33:01Z</dc:date>
    </item>
  </channel>
</rss>

