<?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 for work days per month based off job in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438787#M65196</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have quickly constructed this to more clearly explain the matrix i wish to generate as a result. the numbers are not accurate just wanted to clarify&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2022 17:48:33 GMT</pubDate>
    <dc:creator>NolanB</dc:creator>
    <dc:date>2022-04-05T17:48:33Z</dc:date>
    <item>
      <title>Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438641#M65181</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables; Jobs &amp;amp; Date Table&lt;/P&gt;&lt;P&gt;Jobs contains columns; Job, Start Date, End Date&lt;/P&gt;&lt;P&gt;Date Table contains columns; Date,Year&amp;amp;Month(text string with year and month of date),WorkDay?(True or false)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These tables are related by Jobs(Start Date) to Date Table(Date) in the type many to one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a matrix that shows Jobs(job) as columns and Date table(Year&amp;amp;month) as rows. I want my values to be the number of work days in each month for each job but every measure i have attempted for this has failed. Any help or advice would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Nolan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:22:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438641#M65181</guid>
      <dc:creator>NolanB</dc:creator>
      <dc:date>2022-04-05T16:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438650#M65183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375343" data-lia-user-login="NolanB" class="lia-mention lia-mention-user"&gt;NolanB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;SUMX (&lt;/P&gt;&lt;P&gt;Job,&lt;/P&gt;&lt;P&gt;DATEDIFF ( Job[Start Date], Job[End Date], DAY )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438650#M65183</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438680#M65186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your response,&lt;/P&gt;&lt;P&gt;But this only gives me the duration of each job, what i am looking for is the work days in each month for each job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 16:47:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438680#M65186</guid>
      <dc:creator>NolanB</dc:creator>
      <dc:date>2022-04-05T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438714#M65193</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375343" data-lia-user-login="NolanB" class="lia-mention lia-mention-user"&gt;NolanB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share a screen shot id your report and the results you got?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:11:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438714#M65193</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T17:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438769#M65195</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; I have used dummy data, as the original contains some confidential information, but the results are the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have included the two tables as well as the result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438769#M65195</guid>
      <dc:creator>NolanB</dc:creator>
      <dc:date>2022-04-05T17:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438787#M65196</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have quickly constructed this to more clearly explain the matrix i wish to generate as a result. the numbers are not accurate just wanted to clarify&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:48:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438787#M65196</guid>
      <dc:creator>NolanB</dc:creator>
      <dc:date>2022-04-05T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for work days per month based off job</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438895#M65202</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="375343" data-lia-user-login="NolanB" class="lia-mention lia-mention-user"&gt;NolanB&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is the sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/EjgpPwGXSmF36f4z" target="_blank"&gt;https://www.dropbox.com/t/EjgpPwGXSmF36f4z&lt;/A&gt;&lt;/P&gt;&lt;P&gt;No need for relationship between the two tables.&lt;/P&gt;&lt;P&gt;The measure code is&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Number of Day = 
VAR LastDateInFilter =
    MAX ( 'Date'[Date] )
VAR FirstDateInFilter = 
    MIN ( 'Date'[Date] )
VAR MinVisibleStartDate =
    MIN ( Job[Start Date] )
VAR MaxVisibleEndDate =
    MAX ( Job[End Date] )
VAR AvialableWrkingDays =
    CALCULATETABLE ( VALUES ( 'Date'[Date] ), 'Date'[IsWorkDay] = TRUE() )
VAR SatrtToEnd =
    CALENDAR ( MinVisibleStartDate, MaxVisibleEndDate )
VAR Result =
    COUNTROWS ( INTERSECT ( AvialableWrkingDays, SatrtToEnd ) )
RETURN
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Apr 2022 18:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-work-days-per-month-based-off-job/m-p/2438895#M65202</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-05T18:56:13Z</dc:date>
    </item>
  </channel>
</rss>

