<?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: Measure to divide a total based on the count of another string column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4032685#M159592</link>
    <description>&lt;P&gt;Thanks for your help on this! but I want my new measure to divide the orignal effort hours by the number of resources for that task. For example, William and Dalton both are assigned a 12 hour task called "Onsite Day 1" because they are both on the same task. Their new effort hours should equal 6. (two people on a task that takes 12 hours should result in a 6 hour task)&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 14:04:26 GMT</pubDate>
    <dc:creator>TG23__</dc:creator>
    <dc:date>2024-07-09T14:04:26Z</dc:date>
    <item>
      <title>Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4030963#M159410</link>
      <description>&lt;P&gt;Hi, I'm looking for the syntax for this measure I want to create for my visual. I have tasks for a project the have associated effort hours and a resource assigment. When a task shares multiple resource, I want the total effort hours for that task to be divided by the number of resources assigned. Right now the table shows each resource all having the same amount of effort hours regardless if mulitple people are assigned to a task. Any ideas?&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4030963#M159410</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-08T18:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4030976#M159411</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772225" data-lia-user-login="TG23__" class="lia-mention lia-mention-user"&gt;TG23__&lt;/a&gt;&amp;nbsp;, and thank you for sharing a question with the Community.&amp;nbsp; &amp;nbsp;This reply is informational. Please follow the decorum of the Community Forum when asking a question. &lt;BR /&gt;&lt;BR /&gt;Please share your work-in-progress Power BI Desktop file (with sensitive information removed) and any source files in Excel format that fully address your issue or question in a usable format (not as a screenshot). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then provide the file's URL.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523/highlight/true#M607150&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&amp;nbsp; Proud to be a Super User!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4030976#M159411</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-07-08T18:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4031480#M159447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772225" data-lia-user-login="TG23__" class="lia-mention lia-mention-user"&gt;TG23__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="89602" data-lia-user-login="foodd" class="lia-mention lia-mention-user"&gt;foodd&lt;/a&gt;&amp;nbsp;, thanks for your concern about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
VAR _sum_effort =
    CALCULATE (
        SUM ( 'Table'[Effort] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Task Name] = MAX ( 'Table'[Task Name] ) )
    )
VAR _count_resourse =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Resourse] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Task Name] = MAX ( 'Table'[Task Name] ) )
    )
RETURN
    DIVIDE ( _sum_effort, _count_resourse )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 02:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4031480#M159447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T02:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4031482#M159448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;effort total measure: =
SUMX (
    VALUES ( data[task_name] ),
    CALCULATE (
        DIVIDE ( SUM ( data[effort] ), COUNTROWS ( data ) ),
        ALL ( data[resource] )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 02:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4031482#M159448</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-09T02:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4032685#M159592</link>
      <description>&lt;P&gt;Thanks for your help on this! but I want my new measure to divide the orignal effort hours by the number of resources for that task. For example, William and Dalton both are assigned a 12 hour task called "Onsite Day 1" because they are both on the same task. Their new effort hours should equal 6. (two people on a task that takes 12 hours should result in a 6 hour task)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4032685#M159592</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-09T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4032686#M159593</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your help on this! but I want my new measure to divide the orignal effort hours by the number of resources for that task. For example, William and Dalton both are assigned a 12 hour task called "Onsite Day 1" because they are both on the same task. Their new effort hours should equal 6. (two people on a task that takes 12 hours should result in a 6 hour task&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 14:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4032686#M159593</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-09T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4033540#M159685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="772225" data-lia-user-login="TG23__" class="lia-mention lia-mention-user"&gt;TG23__&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Modify measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
VAR _count_resourse =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Resourse] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Task Name] = MAX ( 'Table'[Task Name] ) )
    )
RETURN
    DIVIDE ( MAX('Table'[Effort]), _count_resourse )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 03:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4033540#M159685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T03:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4033566#M159690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not 100% sure if I understood your question correctly, but please check the below picture and the attached pbix file.&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, 10 Jul 2024 03:11:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4033566#M159690</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-10T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035252#M159908</link>
      <description>&lt;P&gt;This is the correct result but it is not working on my end. Perhaps because "resources" and "project name" are columns from different tables. "Task name" , "Effort" , and "Finish date" are from one table and the other columns are not. Is there a solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 17:10:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035252#M159908</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-10T17:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035260#M159909</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is the correct result but it is not working on my end. Perhaps because "resources" and "project name" are columns from different tables. "Task name" , "Effort" , and "Finish date" are from one table and the other columns are not. Is there a solution for this&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 17:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035260#M159909</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-10T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035919#M159940</link>
      <description>&lt;P&gt;Hi, thank you for your message, and please share your sample pbix file's link here, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 02:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4035919#M159940</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-11T02:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4037269#M160035</link>
      <description>&lt;P&gt;&lt;A href="https://drive.google.com/file/d/19hisWp8BmSFyq2A4Wg66DOQ1H81woeuQ/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/19hisWp8BmSFyq2A4Wg66DOQ1H81woeuQ/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the link to my sample data.&amp;nbsp;&lt;BR /&gt;I am looking for a resources' effort hours to be divided equally among the number of resources assigned to the same task on the same project.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:42:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4037269#M160035</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-11T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4037286#M160036</link>
      <description>&lt;P&gt;Here is my sample data:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/19hisWp8BmSFyq2A4Wg66DOQ1H81woeuQ/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/19hisWp8BmSFyq2A4Wg66DOQ1H81woeuQ/view?usp=drive_link&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 13:47:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4037286#M160036</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-11T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4038540#M160104</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not 100% sure but please check the below picture and the attached pbix file if it suits your requirement.&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;</description>
      <pubDate>Fri, 12 Jul 2024 05:16:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4038540#M160104</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-07-12T05:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to divide a total based on the count of another string column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4040070#M160189</link>
      <description>&lt;P&gt;This worked! Tysm&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 19:01:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-divide-a-total-based-on-the-count-of-another-string/m-p/4040070#M160189</guid>
      <dc:creator>TG23__</dc:creator>
      <dc:date>2024-07-12T19:01:04Z</dc:date>
    </item>
  </channel>
</rss>

