<?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: Calculating Rental $'s per day on a calendar table, using a start date column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4244881#M168066</link>
    <description>&lt;P&gt;This is it!&amp;nbsp; Thanks so much!&amp;nbsp; I think I was getting hung up on using the CALENDARAUTO function.&amp;nbsp; Regardless, this worked great, and will help me on many reports I'm working on!&amp;nbsp; THanks!!!!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 13:05:46 GMT</pubDate>
    <dc:creator>CBloome77</dc:creator>
    <dc:date>2024-10-16T13:05:46Z</dc:date>
    <item>
      <title>Calculating Rental $'s per day on a calendar table, using a start date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4243519#M168004</link>
      <description>&lt;P&gt;Greetings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of rental vehicles with the columns:&amp;nbsp; Asset#, Rental Start Date, and Rental $ per day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also created a Calendar table using the CALENDARAUTO function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm looking to do, is create a SUM(Rental $ per day) for each date on the calendar table, based on the rental start date, meaning, if the date in the Calendar table is 4/1/24, and car 1 and car 2 were rented prior to that date, I want the result to be the sum of the daily rental price for car 1 and car 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought to use Calculate, but it won't let me reference the two date columns as a filter.&amp;nbsp; I've tried several different ways, including using today() as an end date column, date range filters, it just doesn't work.&amp;nbsp; I know this is probably something very basic that I'm missing, but I just can's seem to find anything to reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:01:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4243519#M168004</guid>
      <dc:creator>CBloome77</dc:creator>
      <dc:date>2024-10-15T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Rental $'s per day on a calendar table, using a start date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4243617#M168007</link>
      <description>&lt;P&gt;Can you post some sample data ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 19:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4243617#M168007</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-10-15T19:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Rental $'s per day on a calendar table, using a start date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4244121#M168029</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370716" data-lia-user-login="CBloome77" class="lia-mention lia-mention-user"&gt;CBloome77&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make sure that no relationship has been established between your Calendar and RentalVehicles table.&lt;/P&gt;
&lt;P&gt;I'm assuming TODAY() as the &lt;SPAN&gt;Rental&lt;/SPAN&gt;&amp;nbsp;End Date, if you have a &lt;SPAN&gt;Rental&lt;/SPAN&gt;&amp;nbsp;End Date column in your data, just use it instead of TODAY().&lt;/P&gt;
&lt;P&gt;1. Create a &lt;SPAN&gt;Rental&lt;/SPAN&gt;&amp;nbsp;End Date column in your RentalVehicles table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rental End Date = TODAY()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create a measure to calculate total rental&amp;nbsp; $ per day:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TotalRentalPerDay = 
CALCULATE(
    SUM('RentalVehicles'[Rental $ per day]),
    FILTER(
        'RentalVehicles',
        'RentalVehicles'[Rental Start Date] &amp;lt;= MAX('Calendar'[Date]) &amp;amp;&amp;amp;
        'RentalVehicles'[Rental End Date] &amp;gt;= MIN('Calendar'[Date])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jarvis Tang&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 05:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4244121#M168029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-16T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Rental $'s per day on a calendar table, using a start date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4244881#M168066</link>
      <description>&lt;P&gt;This is it!&amp;nbsp; Thanks so much!&amp;nbsp; I think I was getting hung up on using the CALENDARAUTO function.&amp;nbsp; Regardless, this worked great, and will help me on many reports I'm working on!&amp;nbsp; THanks!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 13:05:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Rental-s-per-day-on-a-calendar-table-using-a-start/m-p/4244881#M168066</guid>
      <dc:creator>CBloome77</dc:creator>
      <dc:date>2024-10-16T13:05:46Z</dc:date>
    </item>
  </channel>
</rss>

