<?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: Calculating a measure on the dates of a selected month... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520059#M29621</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267904" data-lia-user-login="ashrat001" class="lia-mention lia-mention-user"&gt;ashrat001&lt;/a&gt; , Try measure like with date table &lt;/P&gt;
&lt;P&gt;Date table not joined&lt;/P&gt;
&lt;P&gt;Overdue Amount =&lt;BR /&gt;VAR LastDay= maxx(allselected('Date') , 'Date'[Date]) //should return last date in selected period&lt;BR /&gt;RETURN&lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[Net due date.Net due date Level 01]&amp;lt; LastDay &amp;amp;&amp;amp; 'Table'[Item Status.Item Status Level 01] = "O"&lt;BR /&gt;),&lt;BR /&gt;'Table'[Debit amt in LC]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date table joined&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Overdue Amount =&lt;BR /&gt;VAR LastDay= maxx(allselected('Date') , 'Date'[Date]) //should return last date in selected period&lt;BR /&gt;RETURN&lt;BR /&gt;calculate(&lt;BR /&gt;FILTER(sum('Table'[Debit amt in LC])&lt;BR /&gt;All('Date'),&lt;BR /&gt;'Date'[Date]&amp;lt; LastDay),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table','Table'[Item Status.Item Status Level 01] = "O"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 07:50:08 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-27T07:50:08Z</dc:date>
    <item>
      <title>Calculating a measure on the dates of a selected month...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1519723#M29613</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calculating a measure on a date and below in the DAX for measure &lt;STRONG&gt;Overdue Amount&lt;/STRONG&gt; it is today. My goal is to calculate this same measure for all the dates of a &lt;STRONG&gt;Selected Month&lt;/STRONG&gt;. I need to show this in a Bar Chart as a trend of Overdu Amount. How to achieve this and I do not want the selection of &lt;STRONG&gt;Calendar Month&lt;/STRONG&gt; should impact entire data set rather it should only give dates to the following DAX formula.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Overdue Amount&amp;nbsp; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR LastDay= TODAY() //should return last date in selected period&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table', &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table'[Net due date.Net due date Level 01]&amp;lt;TODAY() &amp;amp;&amp;amp; 'Table'[Item Status.Item Status Level 01] = "O" &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table'[Debit amt in LC]&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;I would appreciate your inputs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Tariq Ashraf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2020 04:10:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1519723#M29613</guid>
      <dc:creator>ashrat001</dc:creator>
      <dc:date>2020-11-27T04:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a measure on the dates of a selected month...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520025#M29618</link>
      <description>&lt;P&gt;Do you want that the month filter should not impat your metric and evrytime it gives the same answer irrespective of any months seleted ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 07:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520025#M29618</guid>
      <dc:creator>kumar27</dc:creator>
      <dc:date>2020-11-27T07:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a measure on the dates of a selected month...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520059#M29621</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267904" data-lia-user-login="ashrat001" class="lia-mention lia-mention-user"&gt;ashrat001&lt;/a&gt; , Try measure like with date table &lt;/P&gt;
&lt;P&gt;Date table not joined&lt;/P&gt;
&lt;P&gt;Overdue Amount =&lt;BR /&gt;VAR LastDay= maxx(allselected('Date') , 'Date'[Date]) //should return last date in selected period&lt;BR /&gt;RETURN&lt;BR /&gt;SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[Net due date.Net due date Level 01]&amp;lt; LastDay &amp;amp;&amp;amp; 'Table'[Item Status.Item Status Level 01] = "O"&lt;BR /&gt;),&lt;BR /&gt;'Table'[Debit amt in LC]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date table joined&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Overdue Amount =&lt;BR /&gt;VAR LastDay= maxx(allselected('Date') , 'Date'[Date]) //should return last date in selected period&lt;BR /&gt;RETURN&lt;BR /&gt;calculate(&lt;BR /&gt;FILTER(sum('Table'[Debit amt in LC])&lt;BR /&gt;All('Date'),&lt;BR /&gt;'Date'[Date]&amp;lt; LastDay),&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table','Table'[Item Status.Item Status Level 01] = "O"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 07:50:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520059#M29621</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-27T07:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a measure on the dates of a selected month...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520180#M29623</link>
      <description>&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I want to replace Today() with dates of selected Calendar Month and this selected month should only give dates to the formula and should not impact the table/query. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 08:45:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520180#M29623</guid>
      <dc:creator>ashrat001</dc:creator>
      <dc:date>2020-11-27T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a measure on the dates of a selected month...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520201#M29624</link>
      <description>&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. As per your reply, I have modified my measure. But unfortunately I'm not getting the desired outcome. As the MAX funciton is giving today's date for selected month and therefore filtering data on today's date. I want accumulative values for selected Month dates on each date say November's date should have values for 1 Nov , 2 Nov till 27 Nov so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTD Openonly = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR LastDay= MAXX(ALLSELECTED(CurrentYear[Date]),CurrentYear[Date]) //should return last date in selected period&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table', &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table'[Net due date.Net due date Level 01]&amp;lt;LastDay &amp;amp;&amp;amp; 'Table)'[Item Status.Item Status Level 01] = "O" &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table'[Debit amt in LC]&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;Please see below screen shot. MAXX function filter the data on November Max date 27th, Nov and spilt the values for that date only which 16.75 Million. Rather 27th Nov should have 187.34 value and like wise other dates should have their accumulative values. Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2020 08:59:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-measure-on-the-dates-of-a-selected-month/m-p/1520201#M29624</guid>
      <dc:creator>ashrat001</dc:creator>
      <dc:date>2020-11-27T08:59:52Z</dc:date>
    </item>
  </channel>
</rss>

