<?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 How Many Drivers Available in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/857996#M6873</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have jobs table listed like below:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another table called driver log that looks like the below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in pivot above, how do I put a new measure called "Available Drivers".&lt;/P&gt;&lt;P&gt;So pivot should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 05:51:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-27T05:51:17Z</dc:date>
    <item>
      <title>How Many Drivers Available</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/857996#M6873</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have jobs table listed like below:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another table called driver log that looks like the below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in pivot above, how do I put a new measure called "Available Drivers".&lt;/P&gt;&lt;P&gt;So pivot should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 05:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/857996#M6873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T05:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How Many Drivers Available</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/858036#M6875</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please create a measure as per below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _jobDate = MAX(Job[Job date time])
RETURN CALCULATE(COUNT(DriverLog[Driver id]),FILTER(DriverLog,DriverLog[Login]&amp;lt;=_jobDate &amp;amp;&amp;amp; DriverLog[Logout]&amp;gt;=_jobDate))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 06:18:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/858036#M6875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-27T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How Many Drivers Available</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/859018#M6909</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;thanks so much, it seems to be working. Just 1 little issue I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, in jobs table, there is a field called 'zone'. This field is used as a slicer in the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In driver log table, there is also a field called 'zone'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make the measure to also consider selected slicer in the report?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 00:39:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/859018#M6909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T00:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How Many Drivers Available</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/859175#M6917</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Use this measure to include zone as well in available driver calculation. If it does not work please share sample data to reproduce the scenario&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _jobDate = MAX(Job[Job date time])
VAR _zone = SELECTEDVALUE(Job[zone])
RETURN CALCULATE(COUNT(DriverLog[Driver id]),FILTER(DriverLog,DriverLog[Login]&amp;lt;=_jobDate &amp;amp;&amp;amp; DriverLog[Logout]&amp;gt;=_jobDate &amp;amp;&amp;amp; DriverLog[zone]=_zone))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Nov 2019 04:23:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-Many-Drivers-Available/m-p/859175#M6917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T04:23:53Z</dc:date>
    </item>
  </channel>
</rss>

