<?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: Progress Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4046142#M160489</link>
    <description>&lt;P&gt;Thanks! I will give this a try...&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 12:57:13 GMT</pubDate>
    <dc:creator>carolinastylin</dc:creator>
    <dc:date>2024-07-17T12:57:13Z</dc:date>
    <item>
      <title>Progress Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4044624#M160426</link>
      <description>&lt;P&gt;I built a progress measure that is working but I'm trying to optimize. I have 5 different project types with varying numbers of tasks.&amp;nbsp; I wrote a measure to divide the total completed tasks by the number of incomplete tasks to get the percentage completed. The project types are specified in one column. Need help determining the best method to optimize this measure because the “Valuelist” measure is affecting other measures that I’ve created. FYI... The Completed/Incomplete tasks measures are determined by if a date field is blank or not. All data is being pulled from a SharePoint list. There are 15 columns but not all apply to each ProjectType (I much rather filter the columns that apply for the DAX formula for the specific ProjectType).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Progress =&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF.EAGER('Table'[ValueList] = {"ProjectType1"},&lt;/P&gt;&lt;P&gt;DIVIDE([COMPLETED_TASKS1],[COMPLETED_TASKS1]+[INCOMPLETE_TASKS1],0)+0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IF.EAGER('A6FP_AWAKEN Program Database'[ValueList] = {"ProjectType2"},&lt;/P&gt;&lt;P&gt;DIVIDE([COMPLETED_TASKS2],[COMPLETED_TASKS2]+[INCOMPLETE_TASKS2],0)+0&amp;nbsp; -- and so on&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 16:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4044624#M160426</guid>
      <dc:creator>carolinastylin</dc:creator>
      <dc:date>2024-07-16T16:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4045099#M160439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="776174" data-lia-user-login="carolinastylin" class="lia-mention lia-mention-user"&gt;carolinastylin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try formula like below to create measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CompletedTasks_ProjectType1 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType1",
    NOT(ISBLANK('Table'[CompletionDate]))
)

CompletedTasks_ProjectType2 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType2",
    NOT(ISBLANK('Table'[CompletionDate]))
)

CompletedTasks_ProjectType3 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType3",
    NOT(ISBLANK('Table'[CompletionDate]))
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;IncompleteTasks_ProjectType1 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType1",
    ISBLANK('Table'[CompletionDate])
)

IncompleteTasks_ProjectType2 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType2",
    ISBLANK('Table'[CompletionDate])
)

IncompleteTasks_ProjectType3 = 
CALCULATE(COUNTROWS('Table'), 
    'Table'[ProjectType] = "ProjectType3",
    ISBLANK('Table'[CompletionDate])
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Progress = 
SWITCH(
    TRUE(),
    MAX('Table'[ProjectType]) = "ProjectType1", 
    DIVIDE([CompletedTasks_ProjectType1], [CompletedTasks_ProjectType1] + [IncompleteTasks_ProjectType1], 0),

    MAX('Table'[ProjectType]) = "ProjectType2", 
    DIVIDE([CompletedTasks_ProjectType2], [CompletedTasks_ProjectType2] + [IncompleteTasks_ProjectType2], 0),

    MAX('Table'[ProjectType]) = "ProjectType3", 
    DIVIDE([CompletedTasks_ProjectType3], [CompletedTasks_ProjectType3] + [IncompleteTasks_ProjectType3], 0),

    BLANK()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 01:30:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4045099#M160439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-17T01:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Progress Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4046142#M160489</link>
      <description>&lt;P&gt;Thanks! I will give this a try...&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 12:57:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Progress-Measure/m-p/4046142#M160489</guid>
      <dc:creator>carolinastylin</dc:creator>
      <dc:date>2024-07-17T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

