<?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: Employee Available report in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3595416#M138910</link>
    <description>&lt;P&gt;To create a visual table in Power BI that shows both available hours and work order actual hours per employee and month, you'll need to perform a series of steps that involve merging the two tables and then creating a table visualization. Here's a step-by-step guide:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Import Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure you've imported both tables into Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Relationships&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure there's a relationship established between the two tables based on the Employee ID and Month columns.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Merge Queries&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the Home tab in the Power BI Desktop.&lt;/LI&gt;&lt;LI&gt;Click on Edit Queries to open the Power Query Editor.&lt;/LI&gt;&lt;LI&gt;Select the first table, then choose Merge Queries.&lt;/LI&gt;&lt;LI&gt;In the dialog box, choose the second table and select the matching columns (Employee ID and Month).&lt;/LI&gt;&lt;LI&gt;Ensure you select a type of join that retains all rows from both tables. This is important because you want to ensure you capture all available hours and work order actual hours.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Expand the Merged Table&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After merging, you'll see a new column that contains a table. Click on the double-arrow icon at the column header to expand it.&lt;/LI&gt;&lt;LI&gt;Select the columns you want to keep: Employee ID, Month, Available hours, and Work order actual hours.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Table Visualization&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Once back in the main Power BI window, click on the Insert tab.&lt;/LI&gt;&lt;LI&gt;Choose Table from the Visualization pane to add a new table visualization to your report canvas.&lt;/LI&gt;&lt;LI&gt;Drag and drop the fields (Month, Employee ID, Work order actual hours, and Available hours) into the table visualization.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Format the Table (Optional)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can further format the table by adjusting column headers, resizing columns, or applying custom styles as per your requirements.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter (Optional)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you want to filter the data by a specific month or any other criteria, you can use slicers or filters available in Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Refresh Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure that your data refresh settings are correctly configured if you need the report to update automatically with new data.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By following these steps, you should be able to create a visual table in Power BI that displays both available hours and work order actual hours per employee and month based on the two tables you have.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 05:24:54 GMT</pubDate>
    <dc:creator>123abc</dc:creator>
    <dc:date>2023-12-21T05:24:54Z</dc:date>
    <item>
      <title>Employee Available report</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3595365#M138907</link>
      <description>&lt;P&gt;I have 2 tables&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1st table has 3 columns are the employee ID, Month and available hours.&lt;/LI&gt;&lt;LI&gt;2nd table has alos employee ID, Month, work orders acutal hours and more data.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;the key record in both table is employee ID&lt;/P&gt;&lt;P&gt;I want to create a visual table having Available hours ans Work order actual hours per employee and month, like below&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Employee ID&lt;/TD&gt;&lt;TD&gt;Work order actual hours&lt;/TD&gt;&lt;TD&gt;Available Hours&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;October&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;November&lt;/TD&gt;&lt;TD&gt;321654&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 21 Dec 2023 04:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3595365#M138907</guid>
      <dc:creator>Moha_shanti</dc:creator>
      <dc:date>2023-12-21T04:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Available report</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3595416#M138910</link>
      <description>&lt;P&gt;To create a visual table in Power BI that shows both available hours and work order actual hours per employee and month, you'll need to perform a series of steps that involve merging the two tables and then creating a table visualization. Here's a step-by-step guide:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Import Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure you've imported both tables into Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Relationships&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure there's a relationship established between the two tables based on the Employee ID and Month columns.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Merge Queries&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the Home tab in the Power BI Desktop.&lt;/LI&gt;&lt;LI&gt;Click on Edit Queries to open the Power Query Editor.&lt;/LI&gt;&lt;LI&gt;Select the first table, then choose Merge Queries.&lt;/LI&gt;&lt;LI&gt;In the dialog box, choose the second table and select the matching columns (Employee ID and Month).&lt;/LI&gt;&lt;LI&gt;Ensure you select a type of join that retains all rows from both tables. This is important because you want to ensure you capture all available hours and work order actual hours.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Expand the Merged Table&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;After merging, you'll see a new column that contains a table. Click on the double-arrow icon at the column header to expand it.&lt;/LI&gt;&lt;LI&gt;Select the columns you want to keep: Employee ID, Month, Available hours, and Work order actual hours.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Table Visualization&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Once back in the main Power BI window, click on the Insert tab.&lt;/LI&gt;&lt;LI&gt;Choose Table from the Visualization pane to add a new table visualization to your report canvas.&lt;/LI&gt;&lt;LI&gt;Drag and drop the fields (Month, Employee ID, Work order actual hours, and Available hours) into the table visualization.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Format the Table (Optional)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can further format the table by adjusting column headers, resizing columns, or applying custom styles as per your requirements.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter (Optional)&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you want to filter the data by a specific month or any other criteria, you can use slicers or filters available in Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Refresh Data&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Ensure that your data refresh settings are correctly configured if you need the report to update automatically with new data.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By following these steps, you should be able to create a visual table in Power BI that displays both available hours and work order actual hours per employee and month based on the two tables you have.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 05:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3595416#M138910</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-21T05:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Employee Available report</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3597846#M139026</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="541118" data-lia-user-login="Moha_shanti" class="lia-mention lia-mention-user"&gt;Moha_shanti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the information you have given.&lt;/P&gt;
&lt;P&gt;Please try the add Collum operation on 1st Table using the following DAX after checking the table name and column name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Work order actual hours = SUMX(FILTER(all('Table_2'),'Table_2'[employee ID]=EARLIER(Table_1[employee ID])),'Table_2'[Work order actual hours])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An attachment for your reference. Hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_ &lt;/SPAN&gt;Joseph Ji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 02:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Employee-Available-report/m-p/3597846#M139026</guid>
      <dc:creator>v-jincheng-msft</dc:creator>
      <dc:date>2023-12-22T02:13:04Z</dc:date>
    </item>
  </channel>
</rss>

