<?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 Bring data only to the present day in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290596#M56299</link>
    <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I have a &lt;FONT color="#3366FF"&gt;Divide&lt;/FONT&gt; DAX that divides the money by date&lt;BR /&gt;And so I get an excellent daily average.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I connect&amp;nbsp; &lt;FONT color="#3366FF"&gt;Keepfilters &lt;FONT color="#000000"&gt;to it&lt;/FONT&gt;&lt;/FONT&gt; of a date&lt;BR /&gt;To bring me only up to the date of the present day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm in trouble&lt;BR /&gt;My data does not always reach the present day&lt;BR /&gt;Sometimes the current day is the 18th of the month and the data is only updated until the 12th of the month.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What happens is that the formula divides the money by 18 instead of 12 and that's how I get a wrong average&lt;BR /&gt;I try to solve this with Values but always in the current month I have minus money on the 31st of the month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The right thing to do is:&lt;BR /&gt;To bring data by the day they arrive at DB&lt;BR /&gt;how do I do it?&lt;/P&gt;&lt;P&gt;Please save me&lt;BR /&gt;I've tried everything already&lt;/P&gt;&lt;P&gt;This is the formula that works for me right now:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Net USD AVG = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'DB 2022'[Net USD]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;keepfilters&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 09:07:19 GMT</pubDate>
    <dc:creator>netanel</dc:creator>
    <dc:date>2022-01-19T09:07:19Z</dc:date>
    <item>
      <title>Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290596#M56299</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I have a &lt;FONT color="#3366FF"&gt;Divide&lt;/FONT&gt; DAX that divides the money by date&lt;BR /&gt;And so I get an excellent daily average.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I connect&amp;nbsp; &lt;FONT color="#3366FF"&gt;Keepfilters &lt;FONT color="#000000"&gt;to it&lt;/FONT&gt;&lt;/FONT&gt; of a date&lt;BR /&gt;To bring me only up to the date of the present day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm in trouble&lt;BR /&gt;My data does not always reach the present day&lt;BR /&gt;Sometimes the current day is the 18th of the month and the data is only updated until the 12th of the month.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What happens is that the formula divides the money by 18 instead of 12 and that's how I get a wrong average&lt;BR /&gt;I try to solve this with Values but always in the current month I have minus money on the 31st of the month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The right thing to do is:&lt;BR /&gt;To bring data by the day they arrive at DB&lt;BR /&gt;how do I do it?&lt;/P&gt;&lt;P&gt;Please save me&lt;BR /&gt;I've tried everything already&lt;/P&gt;&lt;P&gt;This is the formula that works for me right now:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Net USD AVG = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'DB 2022'[Net USD]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;keepfilters&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 09:07:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290596#M56299</guid>
      <dc:creator>netanel</dc:creator>
      <dc:date>2022-01-19T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290755#M56307</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="176908" data-lia-user-login="netanel" class="lia-mention lia-mention-user"&gt;netanel&lt;/a&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Net USD AVG =&lt;/P&gt;
&lt;P&gt;AverageX(Values( 'Date'[Date] ), CALCULATE( SUM( 'DB 2022'[Net USD] ),&lt;BR /&gt;keepfilters('Date'[Date] &amp;lt; TODAY())) )&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 10:06:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290755#M56307</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-19T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290782#M56310</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;The best solution so far!&lt;BR /&gt;You really are a Master.&lt;BR /&gt;There is a small problem&lt;BR /&gt;I also have provisions in Value and it comes in one amount once a month&lt;BR /&gt;So I made Divide to divide it by 31 days in a month&lt;BR /&gt;Otherwise he makes me a minus of the whole amount of the provisions&lt;BR /&gt;Say in January the provisions are 4000&lt;BR /&gt;I want to divide by 31&lt;BR /&gt;It is possible?&lt;BR /&gt;Because the whole formula is excellent except for the provisions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks allot&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 10:16:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290782#M56310</guid>
      <dc:creator>netanel</dc:creator>
      <dc:date>2022-01-19T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290809#M56311</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="176908" data-lia-user-login="netanel" class="lia-mention lia-mention-user"&gt;netanel&lt;/a&gt; , I have this solution to distribute value on the month when they are month level, see if that can help&lt;/P&gt;
&lt;P&gt;Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): &lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-Convert-to/ba-p/1657798" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-Convert-to/ba-p/1657798&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 10:24:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290809#M56311</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-19T10:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290826#M56312</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try now and see what it's going for me&lt;BR /&gt;Is there an option in your formula to just do a Divide?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 10:37:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2290826#M56312</guid>
      <dc:creator>netanel</dc:creator>
      <dc:date>2022-01-19T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2291635#M56344</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this is not the right direction in my context.&lt;/P&gt;&lt;P&gt;Anyway I thought of another solution&lt;BR /&gt;I will stick with my formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Net USD AVG = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'DB 2022'[Net USD]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;keepfilters&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;And now I ask&lt;BR /&gt;Is there a possibility that he will not bring me days that have BLANK or zero?&lt;/P&gt;&lt;P&gt;Because if so then no matter what day I am in the month&lt;BR /&gt;It will be considered to me only what my data brings&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2291635#M56344</guid>
      <dc:creator>netanel</dc:creator>
      <dc:date>2022-01-19T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bring data only to the present day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2297943#M56666</link>
      <description>&lt;P&gt;Hi， &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="176908" data-lia-user-login="netanel" class="lia-mention lia-mention-user"&gt;netanel&lt;/a&gt;&amp;nbsp;；&lt;/P&gt;
&lt;P&gt;First, it's not very clear about your table structure, if you want the divisor of January to be 31? February is 28...and so on. if so ,you could try&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;COUNTX ( FILTER ( 'Date', MONTH ( [Date] ) = MONTH ( TODAY () ) ), [Date] )
&lt;/LI-CODE&gt;
&lt;P&gt;If not, Can you provide a simple file and screenshot of the result you want to output?&amp;nbsp;It makes it easier to give you a solution.&lt;/P&gt;
&lt;P&gt;Looking forward to your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team_ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps,&lt;/EM&gt; &lt;/STRONG&gt;then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution&lt;/EM&gt; &lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 07:27:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Bring-data-only-to-the-present-day/m-p/2297943#M56666</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-01-24T07:27:02Z</dc:date>
    </item>
  </channel>
</rss>

