<?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 Ticket remaning to goal by quarter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-remaning-to-goal-by-quarter/m-p/4032637#M159584</link>
    <description>&lt;P&gt;I'm having trouble with coming up with a measure to calculate the number of open &amp;amp; closed VER (aka tickets) to goal each quarter shown in the two boxes below. Currently I have to manually input the calculation, so for example, for the "FY24Q3 opened VERs Remaining to goal", I take (9-160) to get -151. If the number of tickets surpass last quarter's number, then I would want the value to be zero. The same applies to the "FY24Q3 Closed VERs remaining to Goal". Greatly appreciate any tips or recommendations &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;</description>
    <pubDate>Tue, 09 Jul 2024 13:30:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-09T13:30:34Z</dc:date>
    <item>
      <title>Ticket remaning to goal by quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-remaning-to-goal-by-quarter/m-p/4032637#M159584</link>
      <description>&lt;P&gt;I'm having trouble with coming up with a measure to calculate the number of open &amp;amp; closed VER (aka tickets) to goal each quarter shown in the two boxes below. Currently I have to manually input the calculation, so for example, for the "FY24Q3 opened VERs Remaining to goal", I take (9-160) to get -151. If the number of tickets surpass last quarter's number, then I would want the value to be zero. The same applies to the "FY24Q3 Closed VERs remaining to Goal". Greatly appreciate any tips or recommendations &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;</description>
      <pubDate>Tue, 09 Jul 2024 13:30:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-remaning-to-goal-by-quarter/m-p/4032637#M159584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket remaning to goal by quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-remaning-to-goal-by-quarter/m-p/4032646#M159586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&amp;nbsp; create two measures that dynamically calculate these values based on the current data as below&lt;/P&gt;&lt;P&gt;Measure one for OPen&lt;/P&gt;&lt;P&gt;Remaining Open VERs to Goal =&lt;BR /&gt;VAR CurrentQuarter = SELECTEDVALUE('VERs'[Quarter])&lt;BR /&gt;VAR OpenGoal = LOOKUPVALUE(Goals[OpenGoal], Goals[Quarter], CurrentQuarter)&lt;BR /&gt;VAR OpenedVERs = CALCULATE(COUNTROWS('VERs'), 'VERs'[Status] = "Open")&lt;BR /&gt;VAR Remaining = OpenGoal - OpenedVERs&lt;BR /&gt;RETURN IF(Remaining &amp;lt; 0, 0, Remaining)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure two for closed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remaining Closed VERs to Goal =&lt;BR /&gt;VAR CurrentQuarter = SELECTEDVALUE('VERs'[Quarter])&lt;BR /&gt;VAR ClosedGoal = LOOKUPVALUE(Goals[ClosedGoal], Goals[Quarter], CurrentQuarter)&lt;BR /&gt;VAR ClosedVERs = CALCULATE(COUNTROWS('VERs'), 'VERs'[Status] = "Closed")&lt;BR /&gt;VAR Remaining = ClosedGoal - ClosedVERs&lt;BR /&gt;RETURN IF(Remaining &amp;lt; 0, 0, Remaining)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works. please check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:36:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-remaning-to-goal-by-quarter/m-p/4032646#M159586</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-07-09T13:36:52Z</dc:date>
    </item>
  </channel>
</rss>

