<?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: DAX to understand period between start and end date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4266934#M169145</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 12:59:50 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-11-01T12:59:50Z</dc:date>
    <item>
      <title>DAX to understand period between start and end date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4266844#M169133</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I need your professional help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have built up a savings table for my team which looks like attached.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have been trying to build up a Dashboard on PowerBi (attached).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to have a DAX which enables to calculate the savings of a period, by taking into consideration the start and end date on my table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;On all models I have done, it always consider the full period savings, and not the period within.&lt;BR /&gt;&lt;BR /&gt;For example, If i select a period on Power BI from Jan 2024 to Jun 2024, it should show a total of 720,000 (line 1) + 330,000 (line 2)&lt;BR /&gt;The problem is that it doesn't understand these periods between start and end.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I know it is possible to do it (because someone already did it for me 2 years ago), but I just can't find a way to do it myself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your help will be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 11:41:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4266844#M169133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-01T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to understand period between start and end date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4266934#M169145</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 12:59:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4266934#M169145</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-11-01T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to understand period between start and end date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4268866#M169270</link>
      <description>&lt;P&gt;Thanks for the reply from Greg_Deckler&amp;nbsp;, please allow me to provide another insight:&amp;nbsp; &lt;BR /&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _mindate=MINX(ALLSELECTED('Table 2'),'Table 2'[Date])
var _maxdate=MAXX(ALLSELECTED('Table 2'),'Table 2'[Date])
return
SUMX(
    FILTER('Table',
    'Table'[Date]&amp;gt;=_mindate&amp;amp;&amp;amp;'Table'[Date]&amp;lt;=_maxdate),[Amount])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If dax gets results that don't match your expected results, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 09:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-understand-period-between-start-and-end-date/m-p/4268866#M169270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-04T09:04:50Z</dc:date>
    </item>
  </channel>
</rss>

