<?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: Returning counts on one date, filtered by another date. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3201111#M116380</link>
    <description>&lt;P&gt;Hello Spencer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your pbix? It would be infinitely easier to work with (at least for me).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, to clarify what you're trying to accomplish, are you envisioning one slicer for app dates (ex: applications in the last seven days) and one slicer for lease start date (ex: leases starting in May) and looking to return a count of the intersection of the two slicers (ex: applications in the last seven days that have a lease start date in May)?&lt;/P&gt;</description>
    <pubDate>Sat, 22 Apr 2023 18:55:53 GMT</pubDate>
    <dc:creator>Wilson_</dc:creator>
    <dc:date>2023-04-22T18:55:53Z</dc:date>
    <item>
      <title>Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3200666#M116336</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have two tables, a date reference table and a leasing table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The leasing table has 2 fields- an application date, which lies in the past, and a lease begin date, which usually lies in the future. I am attempting to build a visual that can show when leases are starting based on when the application was completed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have an App Date and a Lease Begin Date in the leasing table, and a single date reference in my date table. The active relationship between the two tables is on app date, and I have an inactive connection on lease begin date.&lt;BR /&gt;&lt;BR /&gt;The goal is to be able to select a prior period (ie, last 7 days) and show the count of begin dates in a graph that correspond with those applications.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The dax I am currently attempting to use is:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Future Leases = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'DSR - Lease Detail'&lt;/SPAN&gt;&lt;SPAN&gt;[App]&lt;/SPAN&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ALL - Date Reference'&lt;/SPAN&gt;&lt;SPAN&gt;[dateday]&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;'DSR - Lease Detail'&lt;/SPAN&gt;&lt;SPAN&gt;[BeginDate]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) , &lt;/SPAN&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ALL - Date Reference'&lt;/SPAN&gt;&lt;SPAN&gt;[dateday]&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;'DSR - Lease Detail'&lt;/SPAN&gt;&lt;SPAN&gt;[App Date]&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;OneWay_LeftFiltersRight&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;For reference, the field "App" is a static field of 1 built into my query to quantify applications. The goal of the sum is to get the number of applications (in this case leases starting) in a time window.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, this is only returning begin dates of leases and is not filtering on the application dates. I have also attempted using multiple userelationships in the function.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My example set of applications / begin dates is:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&gt;In theory, if I were to select an app date of the last 7 days, my graph that uses the measure should return a value of 1 if the date column is for May.&lt;BR /&gt;&lt;BR /&gt;Is this function possible to build?&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Apr 2023 22:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3200666#M116336</guid>
      <dc:creator>spencerh998</dc:creator>
      <dc:date>2023-04-21T22:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3201111#M116380</link>
      <description>&lt;P&gt;Hello Spencer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your pbix? It would be infinitely easier to work with (at least for me).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, to clarify what you're trying to accomplish, are you envisioning one slicer for app dates (ex: applications in the last seven days) and one slicer for lease start date (ex: leases starting in May) and looking to return a count of the intersection of the two slicers (ex: applications in the last seven days that have a lease start date in May)?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 18:55:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3201111#M116380</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-22T18:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3203175#M116540</link>
      <description>&lt;P&gt;Hi Wilson,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your time! I unfortunately canot share the PBI file itself due to data policies within my organization.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What you described for what I am envisioning is spot on, though. If there is any additional information I can provide I'd be happy to support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3203175#M116540</guid>
      <dc:creator>spencerh998</dc:creator>
      <dc:date>2023-04-24T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3203370#M116559</link>
      <description>&lt;P&gt;Spencer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to make a sample pbix with mock data and share that instead. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 16:33:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3203370#M116559</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-24T16:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3205318#M116729</link>
      <description>&lt;P&gt;The sample data set is a great idea, thank you! What is the best way to share a PowerBI on these forums? I have an example pbix file built out now, but I am unsure what would be the best way to give you access.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 14:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3205318#M116729</guid>
      <dc:creator>spencerh998</dc:creator>
      <dc:date>2023-04-25T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Returning counts on one date, filtered by another date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3207621#M116879</link>
      <description>&lt;P&gt;Spencer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can upload it to something like Google Drive or Dropbox and share the URL here.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 15:53:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-counts-on-one-date-filtered-by-another-date/m-p/3207621#M116879</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-04-26T15:53:56Z</dc:date>
    </item>
  </channel>
</rss>

