<?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 evaluating number of days with a given slicer (w/ vacation) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-evaluating-number-of-days-with-a-given-slicer-w/m-p/1127972#M16675</link>
    <description>&lt;P&gt;Yes, you need a date table and you need a column within that designates off days. (or &lt;STRONG&gt;IsWorkingDay&lt;/STRONG&gt; column)&lt;/P&gt;
&lt;P&gt;Links here :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.red-gate.com/simple-talk/sql/bi/using-calendars-and-dates-in-power-bi/" target="_self"&gt;https://www.red-gate.com/simple-talk/sql/bi/using-calendars-and-dates-in-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/" target="_self"&gt;https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2020 01:35:33 GMT</pubDate>
    <dc:creator>HotChilli</dc:creator>
    <dc:date>2020-05-29T01:35:33Z</dc:date>
    <item>
      <title>Need Help evaluating number of days with a given slicer (w/ vacation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-evaluating-number-of-days-with-a-given-slicer-w/m-p/1125644#M16626</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a BI report where I would like to compare production data with a daily target. I have a production colun which shows the production for each day. ALong with that, I have a datediff function which works very well with my slicer where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StartDate = CALCULATE ( MIN ( [Production Date ] ), ALLSELECTED ( [Production Date ] ) )&lt;/P&gt;&lt;P&gt;EndDate = CALCULATE ( MAX ( [Production Date ] ), ALLSELECTED ( Production Date ] ) )&lt;/P&gt;&lt;P&gt;DateDifff = CALCULATE (&lt;BR /&gt;DATEDIFF ([StartDate],[EndDate],DAY)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have&lt;/P&gt;&lt;P&gt;Measure 4 = Value([DateDifff]) * x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, x will be a number representing my Daily Target.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am facing is that I don't do production everyday. In otherwords, on weekends and vacation days. My daily target should be 0. So I was thinking of doing something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 4 = (Value([DateDifff])-[Vacation_days]) * x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble finding out how I can evaluate vacation days. Can I have another table which lists down every date? Or is there a way I can mention every Saturday to be an off day?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be highly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 09:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-evaluating-number-of-days-with-a-given-slicer-w/m-p/1125644#M16626</guid>
      <dc:creator>Imrans23</dc:creator>
      <dc:date>2020-05-28T09:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help evaluating number of days with a given slicer (w/ vacation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-evaluating-number-of-days-with-a-given-slicer-w/m-p/1127972#M16675</link>
      <description>&lt;P&gt;Yes, you need a date table and you need a column within that designates off days. (or &lt;STRONG&gt;IsWorkingDay&lt;/STRONG&gt; column)&lt;/P&gt;
&lt;P&gt;Links here :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.red-gate.com/simple-talk/sql/bi/using-calendars-and-dates-in-power-bi/" target="_self"&gt;https://www.red-gate.com/simple-talk/sql/bi/using-calendars-and-dates-in-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/" target="_self"&gt;https://www.andredevelopment.com/en-US/community/blogs/powerbi/working-days-holidays-calendar/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 01:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-evaluating-number-of-days-with-a-given-slicer-w/m-p/1127972#M16675</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2020-05-29T01:35:33Z</dc:date>
    </item>
  </channel>
</rss>

