<?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: Trying to track % complete over time and contrast with past periods in line graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2803182#M88285</link>
    <description>&lt;P&gt;Thanks so much for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line chart is meant to track the progress over the year as tasks are completed, so at the beginning of the year (april) we would start of with a set number of tasks for the year, say 300. Every time we complete a task, we record the date the task was completed. As the year progresses and more tasks are completed, the % of completed tasks relative to the total number of tasks increases and that is what I'm trying to display with the line chart. So for example, by June, maybe we've completed 10% of the tasks for 2022 and maybe 20% by July. I'd like to be able to contrast against previous year's progress to show how the current pace compares with previous years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that provides some further clarity, but if that's not what you were looking for, please let me know and please let me know specifically what other info or explanation i can offer &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;Thanks again and I will attempt to implement your solution asap and let you know if it solved my issues!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 14:49:42 GMT</pubDate>
    <dc:creator>JBI1250</dc:creator>
    <dc:date>2022-09-28T14:49:42Z</dc:date>
    <item>
      <title>Trying to track % complete over time and contrast with past periods in line graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2801135#M88128</link>
      <description>&lt;P&gt;Hi All, I'm trying to figure out the measures/variables that I need to create a visual that tracks progress over time and contrasts it against previous years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample of my data&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Task Year&lt;/TD&gt;&lt;TD&gt;Task Start Date&lt;/TD&gt;&lt;TD&gt;Task ID&lt;/TD&gt;&lt;TD&gt;Task Status&lt;/TD&gt;&lt;TD&gt;Date Completed&lt;/TD&gt;&lt;TD&gt;Note&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;Apr-01-2022&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Active&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Task uncomplete&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;Apr-01-2022&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;05/25/2022&lt;/TD&gt;&lt;TD&gt;Should count for 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;Apr-01-2022&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;07/30/2022&lt;/TD&gt;&lt;TD&gt;Should count for 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;Apr-01-2021&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;04/19/2022&lt;/TD&gt;&lt;TD&gt;Completed after Mar 31st year-end, should not count for % complete for 2021 or 2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;Apr-01-2021&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;08/08/2021&lt;/TD&gt;&lt;TD&gt;Should count for 2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;Apr-01-2021&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;10/04/2021&lt;/TD&gt;&lt;TD&gt;Should count for 2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;Apr-01-2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Active&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Task uncomplete&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;Apr-01-2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Complete&lt;/TD&gt;&lt;TD&gt;02/20/2020&lt;/TD&gt;&lt;TD&gt;Should count for 2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2020&lt;/TD&gt;&lt;TD&gt;Apr-01-2020&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;12/15/2022&lt;/TD&gt;&lt;TD&gt;Completed after Mar 31st 2020 year end, should not count for % complete for 2020 or 2022&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of what I'm hoping to accomplish-&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;So there are a few things to note-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Some tasks are unfinished and do not have a date-completed value. I have tried relating my calendar table to both the Start Date and End Date columns, but both have been problematic.&lt;/LI&gt;&lt;LI&gt;Some tasks are completed in later years, but I only want to track the progress of tasks in the given task year.&lt;/LI&gt;&lt;LI&gt;The calendar year is nonstandard and runs from Apr 1 to Mar 31&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I think I need 3 measures/variables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One that counts the total number of tasks assigned for a given task year... TaskCount=Calculate(Countrows(My Table),...Filter or something?&lt;/LI&gt;&lt;LI&gt;One that sums up the number of tasks completed over time for a given year. I've been closest with this one i think, but it doesnt aggregate or sum... Complete = CALCULATE(COUNTROWS(Stats),FILTER(Stats,[Task Status]="Complete"))&lt;/LI&gt;&lt;LI&gt;One that calculates the % of total annual tasks completed as the year progresses.... %Complete= DIVIDE(Complete, TaskCount)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The problems I've been having-&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I was trying different variations of COUNTROWS to get my total task count but was having problems due to the chart's X axis being months. I was also having problems using my date table in this way. I think I need a variable based on a measure that counts the number of tasks for each task year and holds that value constant to use later in the % complete measure.&lt;/LI&gt;&lt;LI&gt;In the charts and tables I've been experimenting with so far, I can get the number of tasks completed in each month, but not as a running total for a nonstandard calendar year (Apr-Mar), which is the value I will need to calculate and display the % change by month as the year progresses.&lt;/LI&gt;&lt;LI&gt;I can get this measure to work as a yearly total just by dividing measure 2 (completed task count) by measure 1 (total task count), but as soon as I try to incorporate the monthly timeline it all falls apart.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance or direction would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 21:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2801135#M88128</guid>
      <dc:creator>JBI1250</dc:creator>
      <dc:date>2022-09-27T21:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to track % complete over time and contrast with past periods in line graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2802472#M88226</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="448303" data-lia-user-login="JBI1250" class="lia-mention lia-mention-user"&gt;JBI1250&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here is my solution.&lt;/P&gt;
&lt;P&gt;Create a column to meet your request1:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
CALCULATE (
    COUNT ( 'Tabelle1'[Task ID] ),
    FILTER ( 'Tabelle1', 'Tabelle1'[Task Year] = EARLIER ( Tabelle1[Task Year] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;Create another column to meet your request2:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 =
CALCULATE (
    COUNT ( 'Tabelle1'[Task ID] ),
    FILTER (
        'Tabelle1',
        'Tabelle1'[Task Year] = EARLIER ( Tabelle1[Task Year] )
            &amp;amp;&amp;amp; 'Tabelle1'[Task Status] = "Complete"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Create a measure to meet your request3:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
DIVIDE ( MAX ( [Column 2] ), MAX ( [Column] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Can you describe the basis of the line chart in more details to better solve your problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Community Support Team _ xiaosun&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps,&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&amp;nbsp;&lt;/I&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 10:23:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2802472#M88226</guid>
      <dc:creator>v-xiaosun-msft</dc:creator>
      <dc:date>2022-09-28T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to track % complete over time and contrast with past periods in line graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2803182#M88285</link>
      <description>&lt;P&gt;Thanks so much for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line chart is meant to track the progress over the year as tasks are completed, so at the beginning of the year (april) we would start of with a set number of tasks for the year, say 300. Every time we complete a task, we record the date the task was completed. As the year progresses and more tasks are completed, the % of completed tasks relative to the total number of tasks increases and that is what I'm trying to display with the line chart. So for example, by June, maybe we've completed 10% of the tasks for 2022 and maybe 20% by July. I'd like to be able to contrast against previous year's progress to show how the current pace compares with previous years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that provides some further clarity, but if that's not what you were looking for, please let me know and please let me know specifically what other info or explanation i can offer &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;Thanks again and I will attempt to implement your solution asap and let you know if it solved my issues!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 14:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2803182#M88285</guid>
      <dc:creator>JBI1250</dc:creator>
      <dc:date>2022-09-28T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to track % complete over time and contrast with past periods in line graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2803353#M88301</link>
      <description>&lt;P&gt;Hi Xiaosun, i've implemented your suggestions, but it doesn't quite seem to be working as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i link my Date table to the Start Date field in my fact table, i get the annual totals, but don't seem able to get a running monthly total.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When i switch the relationship from start date to date completed, i get a monthly breakdown, but it appears that it's all the 2019 annual total and not a running/compounding/aggregating total based on year and month...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, the line graph seems to be showing the correct annual or current % complete totals based on task year (ie. 2022 is down at around 24%, while 2019 is up at 90%), it's just not showing the rate of completion progressing over the months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The matrix on the left isn't displaying the correct totals for each year (only 2019 it appears), but i think this is because I'm using my date table as the source for the Rows, whereas i'm using Task Year for the Legend in the line graph...&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:47:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-track-complete-over-time-and-contrast-with-past/m-p/2803353#M88301</guid>
      <dc:creator>JBI1250</dc:creator>
      <dc:date>2022-09-28T15:47:33Z</dc:date>
    </item>
  </channel>
</rss>

