<?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 How to get the current YTD value in a Scorecard in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/688849#M563</link>
    <description>&lt;P&gt;I am using 2 Measure for YTDs and can see the Forecast values are correct by Month-Year in the table, but cannot figure out how to get the &lt;U&gt;current&lt;/U&gt; YTD forecast value into a scorecard (single value based on current Month when viewing). The value circled below in the pic is what I'm after - and obviously will change based on the month we're in. I'm guessing another Measure is needed. I tried to use "LASTNONBLANK" but cannot figure out the correct syntax in combination with the measure below (YTD_NOW).&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My YTD Measures are:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTDTotal = TOTALYTD(sum('MyTable'[SavingsAct-Fcst Value]),'MyTable'[Savings Date].[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD_NOW = if(LASTDATE('MyTable'[Savings Date].[Date]) &amp;gt; TODAY(), BLANK(), CALCULATE([YTDTotal]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 May 2019 17:08:39 GMT</pubDate>
    <dc:creator>AWentzEco</dc:creator>
    <dc:date>2019-05-10T17:08:39Z</dc:date>
    <item>
      <title>How to get the current YTD value in a Scorecard</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/688849#M563</link>
      <description>&lt;P&gt;I am using 2 Measure for YTDs and can see the Forecast values are correct by Month-Year in the table, but cannot figure out how to get the &lt;U&gt;current&lt;/U&gt; YTD forecast value into a scorecard (single value based on current Month when viewing). The value circled below in the pic is what I'm after - and obviously will change based on the month we're in. I'm guessing another Measure is needed. I tried to use "LASTNONBLANK" but cannot figure out the correct syntax in combination with the measure below (YTD_NOW).&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My YTD Measures are:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTDTotal = TOTALYTD(sum('MyTable'[SavingsAct-Fcst Value]),'MyTable'[Savings Date].[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YTD_NOW = if(LASTDATE('MyTable'[Savings Date].[Date]) &amp;gt; TODAY(), BLANK(), CALCULATE([YTDTotal]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 May 2019 17:08:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/688849#M563</guid>
      <dc:creator>AWentzEco</dc:creator>
      <dc:date>2019-05-10T17:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current YTD value in a Scorecard</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/689303#M568</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115597" data-lia-user-login="AWentzEco" class="lia-mention lia-mention-user"&gt;AWentzEco&lt;/a&gt; change your YTD Now measure like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;YTD Now = 
CALCULATE( &lt;BR /&gt;[YTDTOTAL],&lt;BR /&gt;KEEPFILTERS( MyTable[Savings Date] &amp;lt;= TODAY() ) &lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 May 2019 23:20:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/689303#M568</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-12T23:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current YTD value in a Scorecard</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691016#M590</link>
      <description>&lt;P&gt;I created the new Measure and then tried using that in the Scorecard and it's still a blank value. Only when I click on the table value will the measure value appear in the Scorecard. Do I need to use Var with an IF to get today's value in there for the measure? I know I'm missing the Date link or something since none of those YTD measures I created work in the Scorecard - they all show as 'blank'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YTD_AGAIN = CALCULATE([YTDTotal],KEEPFILTERS(‘MyTable’[Savings Date] &amp;lt;= TODAY()))&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691016#M590</guid>
      <dc:creator>AWentzEco</dc:creator>
      <dc:date>2019-05-14T18:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current YTD value in a Scorecard</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691020#M591</link>
      <description>&lt;P&gt;Ok, I just updated the 'KEEPFILTERS' to 'FILTER' and it works!! I think this solved it - thank you for the help.&lt;/P&gt;&lt;P&gt;YTD_AGAIN = CALCULATE([YTDTotal],&lt;STRONG&gt;FILTER&lt;/STRONG&gt;(‘MyTable,’MyTable'[Savings Date].[Date] &amp;lt;= TODAY()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691020#M591</guid>
      <dc:creator>AWentzEco</dc:creator>
      <dc:date>2019-05-14T18:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the current YTD value in a Scorecard</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691021#M592</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115597" data-lia-user-login="AWentzEco" class="lia-mention lia-mention-user"&gt;AWentzEco&lt;/a&gt; glad to hear. enjoy!! :)&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 18:28:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-the-current-YTD-value-in-a-Scorecard/m-p/691021#M592</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-14T18:28:38Z</dc:date>
    </item>
  </channel>
</rss>

