<?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: Using Measures for Future Dates in a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/3999210#M155715</link>
    <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You might consider creating a 24-hour interval date table that has no join relationship with the main table, and using measure to display the value&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = GENERATESERIES (DATE (2024, 01, 01), NOW(), 0.041666667)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;availability =
var _select=
SELECTEDVALUE('Date'[Value])
var _DATEDIFF=
DATEDIFF(
  _select,MAX('Table'[End Time]),HOUR)
return
IF(
    MAX('Table'[End Time])&amp;lt;=_select &amp;amp;&amp;amp; MAX('Table'[total working hours]) &amp;lt;= MAX('Table'[assigned time]),MAX('Table'[assigned time]) - MAX('Table'[total working hours]),BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;availability hours =
SUMX(
    ALLSELECTED('Table'),[availability])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If my explanations don't meet your expected results or don't understand your question, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 02:42:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-19T02:42:17Z</dc:date>
    <item>
      <title>Using Measures for Future Dates in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/3998392#M155632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a resourcing dashbord.&amp;nbsp; I have a list in a sheet of all bookings of staff onto projects it also includes all the necessary information such as total working hours for that person as well as the number of hours assigned to that project and the start date and end date of the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a measure to show the current availability for all staff (which was just Max Available Hours - SUM(Hours)) and in my table I just have list of Names and the Measure beside it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to figure out how to look at availability in the future, I first tried changing the end date but that removed a number of people from the list which I don't want to do, I want all the Names to stay and just the available hours be updated.&amp;nbsp; I think using End Date is the wrong way to go about it, but I can't seem to figure out the best way.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:01:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/3998392#M155632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T14:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measures for Future Dates in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/3999210#M155715</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You might consider creating a 24-hour interval date table that has no join relationship with the main table, and using measure to display the value&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date = GENERATESERIES (DATE (2024, 01, 01), NOW(), 0.041666667)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;availability =
var _select=
SELECTEDVALUE('Date'[Value])
var _DATEDIFF=
DATEDIFF(
  _select,MAX('Table'[End Time]),HOUR)
return
IF(
    MAX('Table'[End Time])&amp;lt;=_select &amp;amp;&amp;amp; MAX('Table'[total working hours]) &amp;lt;= MAX('Table'[assigned time]),MAX('Table'[assigned time]) - MAX('Table'[total working hours]),BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;availability hours =
SUMX(
    ALLSELECTED('Table'),[availability])&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If my explanations don't meet your expected results or don't understand your question, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 02:42:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/3999210#M155715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-19T02:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measures for Future Dates in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/4000275#M155797</link>
      <description>&lt;P&gt;I don't think this is quite what I'm after.&amp;nbsp; I'll share some sample data and try and describe what I'm looking for a bit better.&amp;nbsp; I'll share once I've created some sample data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Sarah&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 13:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measures-for-Future-Dates-in-a-table/m-p/4000275#M155797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-19T13:56:50Z</dc:date>
    </item>
  </channel>
</rss>

