<?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: Reference Line showing Date when forecast exceeds 50% of goal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924911#M96034</link>
    <description>&lt;P&gt;This did the trick.&amp;nbsp; Oddly, when I named the variable Goal like you had it, I got a, error stating "The syntax for Goal is incorrect".&amp;nbsp; I changed the variable name to Funding and that solved it.&amp;nbsp; I also added a 75% line.&amp;nbsp; Thanks for the help!&amp;nbsp;&amp;nbsp;&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;</description>
    <pubDate>Wed, 23 Nov 2022 15:40:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-23T15:40:36Z</dc:date>
    <item>
      <title>Reference Line showing Date when forecast exceeds 50% of goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2922135#M95846</link>
      <description>&lt;P&gt;I can usually find a similar post that is close enough to what I am looking to do and tweak it to get where I need, but I'm coming up short this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this visual.&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;The darker line is [Cumulative Actual], and the ligther dotted line is [Cumulative Forecast] (which is actually actuals + forecast, lying underneath the darker line so as to hav e continuous line).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cumulative Actual = 
CALCULATE(
	[Cumulative Forecast],
	'Consolidated_TDP_Data'[Act/Fcst] IN { "ACTUAL" }
)



Cumulative Forecast = 
CALCULATE(
	SUM('Consolidated_TDP_Data'[Value]),
	FILTER(
		ALLSELECTED('Consolidated_TDP_Data'[Month/Year]),
		ISONORAFTER('Consolidated_TDP_Data'[Month/Year], MAX('Consolidated_TDP_Data'[Month/Year]), DESC)
	)
)
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reference line is the Goal (Funded).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Current_Funding = Sum('OY2 MIPR Breakout thru Mod 22'[Current Funding])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few filters that can be applied to the visual to get to just the Actuals/Forecast/Goal for one project or one type of spending, and that all works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like is to add an X-Axis Reference line at the first point where the Forecast is &amp;gt; 50% of the Goal/Funded line. So, in the photo above, 50% of the Goal would be $23.8M, so the refence line should shoot up from where i have my cursor, which is the first month where 50% of the goal was exceeded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 15:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2922135#M95846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-22T15:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line showing Date when forecast exceeds 50% of goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924018#M95965</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;&lt;SPAN&gt;To create a vertical reference line, you need to create&amp;nbsp;a "line and stacked column chart".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a measure.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    'Consolidated_TDP_Data'[Cumulative Forecast]
        &amp;gt; RELATED ( 'OY2 MIPR Breakout thru Mod 22'[Current Funding] ) * 0.5,
    'Consolidated_TDP_Data'[Month/Year]
)&lt;/LI-CODE&gt;
&lt;P&gt;Then Put column [Month/Year] into shared axis and put [Cumulative Actual] and [Cumulative Forecast] into line values.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in your tables (&lt;/SPAN&gt;&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;&lt;SPAN&gt;) with&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;format and your&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ xiaosun&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps,&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:52:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924018#M95965</guid>
      <dc:creator>v-xiaosun-msft</dc:creator>
      <dc:date>2022-11-23T09:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line showing Date when forecast exceeds 50% of goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924223#M95979</link>
      <description>&lt;P&gt;You could define a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Passes halfway =
VAR Goal = [Current_funding]
RETURN
    FIRSTNONBLANK (
        'Date'[Date],
        IF ( [Cumulative forecast] &amp;gt; DIVIDE ( Goal, 2 ), 1 )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;and then use that as the value for an x-axis reference line&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 10:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924223#M95979</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-11-23T10:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference Line showing Date when forecast exceeds 50% of goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924911#M96034</link>
      <description>&lt;P&gt;This did the trick.&amp;nbsp; Oddly, when I named the variable Goal like you had it, I got a, error stating "The syntax for Goal is incorrect".&amp;nbsp; I changed the variable name to Funding and that solved it.&amp;nbsp; I also added a 75% line.&amp;nbsp; Thanks for the help!&amp;nbsp;&amp;nbsp;&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;</description>
      <pubDate>Wed, 23 Nov 2022 15:40:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reference-Line-showing-Date-when-forecast-exceeds-50-of-goal/m-p/2924911#M96034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-23T15:40:36Z</dc:date>
    </item>
  </channel>
</rss>

