<?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: Monthly Progress in % as Gauge Target in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3798439#M148459</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a Measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure % = 
 VAR SelectedMonth = MONTH(SELECTEDVALUE('Table'[Date]))
    RETURN
        IF(SelectedMonth &amp;lt; MONTH(TODAY()), 1, 
            IF(SelectedMonth &amp;gt; MONTH(TODAY()), 0, 
                [Month Progression %]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have achieved your needs now:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file has been attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have other questions, please contact me at any time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 08:48:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-29T08:48:11Z</dc:date>
    <item>
      <title>Monthly Progress in % as Gauge Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3791899#M148174</link>
      <description>&lt;P&gt;Hello, I have in my Power BI report a gauge chart showing the production attainment. Let's say that today 26 march, attainment is 80%.&lt;/P&gt;&lt;P&gt;I would like to add a target on this gauge. A dynamic target that would show the month progression.&lt;/P&gt;&lt;P&gt;For today 26 march (I want the target to be 84% (as 26 march is 84% of whole march month having 31 days). We would visually see the attainment is under target.&lt;/P&gt;&lt;P&gt;If on my report, i select the previous month (2024 - february) of course I want to have 100% and if april selected, it would still be 0%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to do that ? i thought about an excel file for each year/month and a formula but it would mean to get inside the file everyday and update/save it for the formula to refresh. any other way with DAX ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 16:30:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3791899#M148174</guid>
      <dc:creator>yoa380</dc:creator>
      <dc:date>2024-03-26T16:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Progress in % as Gauge Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3792074#M148185</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I got this measure for you :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Target exercice for current month =
DIVIDE( DAY(TODAY()),DAY(EOMONTH(TODAY(),0)) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;You can complete it with a IF statement that check if your selected month is before or after current month. If it's before, your target is 1, if it's after, your target is 0.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can help you more if you give me a sample of your dataset without real value.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3792074#M148185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-26T17:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Progress in % as Gauge Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3793121#M148229</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from Anonymous&lt;/a&gt;&amp;nbsp;, please allow me to provide my insight:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month Progression % = 
VAR StartMonth =
    DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 )
VAR EndMonth =
    eomonth ( tday (), 0 )
VAR DaysPassed = TODAY ()-StartMonth
VAR TotalDays = EndMonth-StartMonth
RETURN
    DIVIDE ( DaysPassed, TotalDays, 0 ) * 100&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put "Month Progression %" into the Target value of the Gauge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The page result is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be grateful if you could provide me with sample data for testing, please remove any sensitive data in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 07:02:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3793121#M148229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-27T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Progress in % as Gauge Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3793693#M148257</link>
      <description>&lt;P&gt;Hello, Thanks a lot for this measure. I have now succeeded to add it as target value. On my gauge it appears well. But if I change the month in filter on my page (for example February), it would still show 87% (I want 100%) and if I select April I want 0%. Any idea of how to add IF rules in the measure you created for me ?&lt;/P&gt;&lt;P&gt;I have attached a picture with my gauges and my filters (year / month) from a calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 10:01:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3793693#M148257</guid>
      <dc:creator>yoa380</dc:creator>
      <dc:date>2024-03-27T10:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Progress in % as Gauge Target</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3798439#M148459</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to create a Measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure % = 
 VAR SelectedMonth = MONTH(SELECTEDVALUE('Table'[Date]))
    RETURN
        IF(SelectedMonth &amp;lt; MONTH(TODAY()), 1, 
            IF(SelectedMonth &amp;gt; MONTH(TODAY()), 0, 
                [Month Progression %]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have achieved your needs now:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file has been attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have other questions, please contact me at any time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 08:48:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Monthly-Progress-in-as-Gauge-Target/m-p/3798439#M148459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-29T08:48:11Z</dc:date>
    </item>
  </channel>
</rss>

