<?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 KPI Target YTD with Live Dataset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010214#M44668</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to format some KPIs, I have a monthly goal of '22' and it is fixed at 22 per month for the year. How do I write the DAX for YTD goal whereby my report shows the previous months goal within the KPI? I.e. When it turns february, it shows as 22, March is 44, April 66 etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new measure simply as 'Prop = 22' so that if the target changes next year I can rename the variable to say 'Prop = 24' and the YTD will change with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having trouble as I am new to Power BI and using a live dataset, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 09:57:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-11T09:57:10Z</dc:date>
    <item>
      <title>KPI Target YTD with Live Dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010214#M44668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to format some KPIs, I have a monthly goal of '22' and it is fixed at 22 per month for the year. How do I write the DAX for YTD goal whereby my report shows the previous months goal within the KPI? I.e. When it turns february, it shows as 22, March is 44, April 66 etc..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new measure simply as 'Prop = 22' so that if the target changes next year I can rename the variable to say 'Prop = 24' and the YTD will change with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having trouble as I am new to Power BI and using a live dataset, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 09:57:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010214#M44668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T09:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Target YTD with Live Dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010357#M44672</link>
      <description>&lt;P&gt;Yeah... sure.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/td-p/1626726" target="_blank"&gt;How to Get Your Question Answered Quickly - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 11:33:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010357#M44672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T11:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Target YTD with Live Dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010421#M44676</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, your question is not clear, but if you want to calculate the KPI based on the Today Date, you can use the below code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;KPI=
VAR _Month_Goal = 22 
           // Monthly Goal
    RETURN
        VAR _Date =
            TODAY () 
           // you can change this to any date
        RETURN
            VAR _MonthP =
                MONTH ( _Date ) 
           // this Var shows the month of the _Date
            RETURN
                ( _MonthP - 1 ) * _Month_Goal&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010421#M44676</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-08-11T12:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: KPI Target YTD with Live Dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010791#M44694</link>
      <description>&lt;P&gt;Ah yes thats great! Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/KPI-Target-YTD-with-Live-Dataset/m-p/2010791#M44694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T14:25:15Z</dc:date>
    </item>
  </channel>
</rss>

