<?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: Need help to get count of resources in work order (Dataverse) - Field service in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3754597#M146476</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&lt;/P&gt;&lt;P&gt;As i mentioned in the previous reply, i couldnt able to merge the table, it throws error.&lt;/P&gt;&lt;P&gt;what i decided is,&amp;nbsp; I created a result table with all the required columns from both Work order booking and resource tables&lt;/P&gt;&lt;P&gt;and then added calculated columns for finding the category as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result  Table = SELECTCOLUMNS((NATURALINNERJOIN(BookingsWO,Resources)),"WO",BookingsWO[Work Order],"DESC",BookingsWO[Work Order Summary],"TYPE",Resources[Resource Category],"NAME",Resources[Name],"START",BookingsWO[Start Date],"END",BookingsWO[End Date],"JOB",BookingsWO[JobNoCbs],"CUSTOMER",BookingsWO[Service Account],"MASON",if(Resources[Resource Category]="MASON",1,0),"PAINTER",if(Resources[Resource Category]="PAINTER",1,0),"PLUMBER",if(Resources[Resource Category]="PLUMBER",1,0),"ELECTRICIAN",if(Resources[Resource Category]="ELECTRICIAN",1,0),"CARPENTER",if(Resources[Resource Category]="CARPENTER",1,0),"AC",IF(Resources[Resource Category]="AC",1,0),"HELPER",IF(Resources[Resource Category]="HELPER",1,0),"OTHERS",if((Resources[Resource Category]&amp;lt;&amp;gt;"MASON" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"PAINTER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"PLUMBER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"ELECTRICIAN" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"CARPENTER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"AC" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"HELPER"),1,0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the table Visual, i chose all these columns from result table, Start Date as Earliest Start Date, End Date as Latest End Date.&lt;/P&gt;&lt;P&gt;this give me the desired output. But the total of date difference is wrong.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;the total days should be 22 , but it shows the entire difference from earliest start and latest end dates.&lt;/P&gt;&lt;P&gt;Please guide if Is there any way to solve it? Is there any disadvantages in this method instead of power query merge?&lt;/P&gt;&lt;P&gt;thank you for your time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 09:25:42 GMT</pubDate>
    <dc:creator>dejadpower</dc:creator>
    <dc:date>2024-03-11T09:25:42Z</dc:date>
    <item>
      <title>Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3739927#M145818</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom column -&lt;STRONG&gt; resource type&lt;/STRONG&gt; to store "mason,painter , etc" in&lt;STRONG&gt; Bookable Resource&lt;/STRONG&gt;&amp;nbsp; table. An work order has multiple bookings&lt;/P&gt;&lt;P&gt;I need to summarize:&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;Work order table has multiple Resource booking rows which is from another table&lt;/P&gt;&lt;P&gt;each Resource has a category (mason, painter etc)&lt;/P&gt;&lt;P&gt;how to display count using measure or column?&lt;/P&gt;&lt;P&gt;anyone please guide&lt;/P&gt;&lt;P&gt;thanks for helping!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:57:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3739927#M145818</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-04T11:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3739971#M145820</link>
      <description>&lt;P&gt;Hi, in Power Query, duplicate the work order,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Select resource type-transform-pivot the column&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>Mon, 04 Mar 2024 12:14:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3739971#M145820</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2024-03-04T12:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3740019#M145823</link>
      <description>&lt;P&gt;HI ''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the reply. I am a beginner in power bi. can you please elaborate ? I need to display other columns also from the work order table, is it possible to combine work order and pivoted table content for selected customer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 12:36:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3740019#M145823</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-04T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3741918#M145930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="610833" data-lia-user-login="dejadpower" class="lia-mention lia-mention-user"&gt;dejadpower&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where are you stuck? I think it is working. Please share your sample data and show your expected results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 06:27:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3741918#M145930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-05T06:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742132#M145943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for the support. I am sharing the report data here&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;please guide to achieve the desired result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 07:52:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742132#M145943</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-05T07:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742158#M145946</link>
      <description>&lt;P&gt;In power Query, merge the booking table with the resource table based on the resource. expand , and bring the resource category into the bookings table. then pelase follow like i described before. My snapshots show you the same output that you would like to have.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 08:11:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742158#M145946</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2024-03-05T08:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742566#M145961</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I am an absolute beginner in power bi DAX. Is it possible to give me any DAX expressions to achieve the steps you explained . I'm completely stuck , thanks for helping&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 10:00:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742566#M145961</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-05T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742668#M145965</link>
      <description>&lt;P&gt;1. Step 1&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;2. Step 2&lt;BR /&gt;Select work order, select merge queries, select resource table, select resource column in both tables , click OK&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Step 4 Right click on work order column, duplicate column&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Step 5&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If needed adjust the data types,&amp;nbsp;&lt;BR /&gt;then file close and apply&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If you want DAX and you have only 6 Resource types, then Create relationship between the table based on resource code. And then write 6 DAX Measures.&amp;nbsp;&lt;BR /&gt;Painter=Calculate(Countrows(Worktable), Resource Type=1)&lt;BR /&gt;Mason= Calculate(Countrows(Worktable), Resource Type=2)&amp;nbsp; etc. it is easier for the beginner, but not dynamic, in case you get more resource types than 6.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 10:29:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3742668#M145965</guid>
      <dc:creator>olgad</dc:creator>
      <dc:date>2024-03-05T10:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3744997#M146045</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after merge queries, i selected resource as matching column. it throws error . please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:03:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3744997#M146045</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-06T06:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to get count of resources in work order (Dataverse) - Field service</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3754597#M146476</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="254062" data-lia-user-login="olgad" class="lia-mention lia-mention-user"&gt;olgad&lt;/a&gt;&lt;/P&gt;&lt;P&gt;As i mentioned in the previous reply, i couldnt able to merge the table, it throws error.&lt;/P&gt;&lt;P&gt;what i decided is,&amp;nbsp; I created a result table with all the required columns from both Work order booking and resource tables&lt;/P&gt;&lt;P&gt;and then added calculated columns for finding the category as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result  Table = SELECTCOLUMNS((NATURALINNERJOIN(BookingsWO,Resources)),"WO",BookingsWO[Work Order],"DESC",BookingsWO[Work Order Summary],"TYPE",Resources[Resource Category],"NAME",Resources[Name],"START",BookingsWO[Start Date],"END",BookingsWO[End Date],"JOB",BookingsWO[JobNoCbs],"CUSTOMER",BookingsWO[Service Account],"MASON",if(Resources[Resource Category]="MASON",1,0),"PAINTER",if(Resources[Resource Category]="PAINTER",1,0),"PLUMBER",if(Resources[Resource Category]="PLUMBER",1,0),"ELECTRICIAN",if(Resources[Resource Category]="ELECTRICIAN",1,0),"CARPENTER",if(Resources[Resource Category]="CARPENTER",1,0),"AC",IF(Resources[Resource Category]="AC",1,0),"HELPER",IF(Resources[Resource Category]="HELPER",1,0),"OTHERS",if((Resources[Resource Category]&amp;lt;&amp;gt;"MASON" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"PAINTER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"PLUMBER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"ELECTRICIAN" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"CARPENTER" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"AC" &amp;amp;&amp;amp; Resources[Resource Category]&amp;lt;&amp;gt;"HELPER"),1,0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the table Visual, i chose all these columns from result table, Start Date as Earliest Start Date, End Date as Latest End Date.&lt;/P&gt;&lt;P&gt;this give me the desired output. But the total of date difference is wrong.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;the total days should be 22 , but it shows the entire difference from earliest start and latest end dates.&lt;/P&gt;&lt;P&gt;Please guide if Is there any way to solve it? Is there any disadvantages in this method instead of power query merge?&lt;/P&gt;&lt;P&gt;thank you for your time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 09:25:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-get-count-of-resources-in-work-order-Dataverse/m-p/3754597#M146476</guid>
      <dc:creator>dejadpower</dc:creator>
      <dc:date>2024-03-11T09:25:42Z</dc:date>
    </item>
  </channel>
</rss>

