<?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: Trying to filter or summarize a table by rolling criteria from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858206#M185331</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2025 23:10:04 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-10-24T23:10:04Z</dc:date>
    <item>
      <title>Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858098#M185329</link>
      <description>&lt;P&gt;In Dynamics, I have a satisfaction survey that is sent to clients automatically a set duration after a service was delivere to clients.&lt;/P&gt;&lt;P&gt;I have a table of responses to these customer voice surveys in Dynamics, and a table of services provided, and I am trying to make a table that ties the two together, but the issue I am experiencing is that I believe I am trying to filter my rows with rolling or variable filters in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I want to make sure that I am filtering my services so that they hit a rolling criteria of 30 days preceeding a given survey invite that was sent to that client. Client A's survey window of services and time will be different from Client B''s, and so on.&lt;/P&gt;&lt;P&gt;All of the examples that I have seen using DAX use static filters, which won't work, because each client will have one or more 30 day windows that I am trying to filter on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the unique ID's and date ranges I am interested in, but I am unsure how to proceed with filtering my table of services where each row will have different date filter criteria based on the client ID present in that row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table of responses to surveys, with the date ranges that I want to pull from, but this will of course be a different date range for each entity that it is regarding. I want to filter a second dable using the date ranges that I have here, and the ragarding ID, to make one table of all services that would have been rendered to that ID, in the date ranges relevant to that survey.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for sudocode or comparison, in R, my preferred language for this kind of manipulation, I would have been able to take a fact table of ranges, and to a loop to filter through my second table, where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for (i in table1rows) {&lt;/P&gt;&lt;P&gt;filter table2rows where&lt;/P&gt;&lt;P&gt;[id] = table1rows[id] &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;[date] &amp;gt; table1rows[start of date range] &amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;[date] &amp;lt; table1rows[end of date range]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and just append the results of each filtered subset into a new table to work with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 19:43:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858098#M185329</guid>
      <dc:creator>CSnyderMPH</dc:creator>
      <dc:date>2025-10-24T19:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858206#M185331</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 23:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858206#M185331</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-10-24T23:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858669#M185336</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545729" data-lia-user-login="CSnyderMPH" class="lia-mention lia-mention-user"&gt;CSnyderMPH&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create your required output by creating a calculated table like below to bridge the two fact tables:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ServicesInWindow = 
GENERATE (
    'SurveyResponses',
    
    -- Variables for the current survey row
    VAR vInviteDate = DATEVALUE('SurveyResponses'[Invite Date])
    VAR vClientID = 'SurveyResponses'[Regarding ID]
    
    -- 1. This is your original CALCULATETABLE logic,
    --    now stored in a variable.
    VAR vFilteredServices = 
        CALCULATETABLE (
            'Services',
            FORMAT('Services'[Regarding ID], "0") = vClientID,
            'Services'[Service Date] &amp;gt; vInviteDate - 30,
            'Services'[Service Date] &amp;lt;= vInviteDate
        )
    
    -- 2. This is the fix: We select only the columns we want
    --    from the filtered services, and we intentionally
    --    LEAVE OUT 'Services'[Regarding ID] to avoid the
    --    duplicate name.
    RETURN
    SELECTCOLUMNS(
        vFilteredServices,
        "ServiceID", 'Services'[ServiceID],
        "Service Date", 'Services'[Service Date],
        "Notes (for demo)", 'Services'[Notes (for demo)]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;The resultant output is shown in the 3rd table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find attached the pbix file for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 15:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858669#M185336</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-10-26T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858972#M185342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545729" data-lia-user-login="CSnyderMPH" class="lia-mention lia-mention-user"&gt;CSnyderMPH&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As mentioned by&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp; please provide sample data&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 05:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4858972#M185342</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-10-27T05:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859068#M185345</link>
      <description>&lt;P&gt;Filtered Services =&lt;BR /&gt;GENERATE(&lt;BR /&gt;'Survey Table',&lt;BR /&gt;VAR CurrentSurveyDate = 'Survey Table'[Survey Date]&lt;BR /&gt;VAR CurrentClient = 'Survey Table'[Client ID]&lt;BR /&gt;VAR StartDate = CurrentSurveyDate - 30&lt;BR /&gt;RETURN&lt;BR /&gt;FILTER(&lt;BR /&gt;'Services Table',&lt;BR /&gt;'Services Table'[Client ID] = CurrentClient &amp;amp;&amp;amp;&lt;BR /&gt;'Services Table'[Service Date] &amp;gt;= StartDate &amp;amp;&amp;amp;&lt;BR /&gt;'Services Table'[Service Date] &amp;lt;= CurrentSurveyDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this answer helped, please click Kudos or mark as Solution.&lt;BR /&gt;-Kedar&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank"&gt;https://www.linkedin.com/in/kedar-pande&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 07:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859068#M185345</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2025-10-27T07:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859513#M185358</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I think this is what I am looking for, except flipped. I was hoping to achieve a longer join, so for each invite I am expecting one or more rows of services, or rather, I am expecting each service to potentially have an invite associated with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed that in my case, it does not seem to be working in the event that there are more than one matches; I expected multiple services to match to one invite, and the function appears to only return values where there is only one match available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies, I am unfamiliar with the use of return within the generate funciton itself, as that is inconsistent with the MS documentation on the funciton.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/generate-function-dax" target="_blank" rel="noopener"&gt;GENERATE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Responses:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[Response ID]&lt;/TD&gt;&lt;TD&gt;[Invite ID]&lt;/TD&gt;&lt;TD&gt;[Regarding ID]&lt;/TD&gt;&lt;TD&gt;[Invite Date]&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;R1&lt;/TD&gt;&lt;TD&gt;I1&lt;/TD&gt;&lt;TD&gt;HH1&lt;/TD&gt;&lt;TD&gt;2025-01-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;R2&lt;/TD&gt;&lt;TD&gt;I2&lt;/TD&gt;&lt;TD&gt;HH2&lt;/TD&gt;&lt;TD&gt;2025-01-02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;R3&lt;/TD&gt;&lt;TD&gt;I3&lt;/TD&gt;&lt;TD&gt;HH3&lt;/TD&gt;&lt;TD&gt;2025-01-03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;R4&lt;/TD&gt;&lt;TD&gt;I4&lt;/TD&gt;&lt;TD&gt;HH4&lt;/TD&gt;&lt;TD&gt;2025-01-04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;R5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TD&gt;O6&lt;/TD&gt;&lt;TD&gt;HH3&lt;/TD&gt;&lt;TD&gt;2024-12-06&lt;/TD&gt;&lt;TD&gt;R3&lt;/TD&gt;&lt;TD&gt;I3&lt;/TD&gt;&lt;TD&gt;2025-01-03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O7&lt;/TD&gt;&lt;TD&gt;HH4&lt;/TD&gt;&lt;TD&gt;2024-12-07&lt;/TD&gt;&lt;TD&gt;R4&lt;/TD&gt;&lt;TD&gt;I4&lt;/TD&gt;&lt;TD&gt;2025-01-04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O8&lt;/TD&gt;&lt;TD&gt;HH4&lt;/TD&gt;&lt;TD&gt;2024-12-08&lt;/TD&gt;&lt;TD&gt;R4&lt;/TD&gt;&lt;TD&gt;I4&lt;/TD&gt;&lt;TD&gt;2025-01-04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O9&lt;/TD&gt;&lt;TD&gt;HH5&lt;/TD&gt;&lt;TD&gt;2024-12-09&lt;/TD&gt;&lt;TD&gt;R5&lt;/TD&gt;&lt;TD&gt;I5&lt;/TD&gt;&lt;TD&gt;2025-01-05&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;O10&lt;/TD&gt;&lt;TD&gt;HH5&lt;/TD&gt;&lt;TD&gt;2024-12-10&lt;/TD&gt;&lt;TD&gt;R5&lt;/TD&gt;&lt;TD&gt;I5&lt;/TD&gt;&lt;TD&gt;2025-01-05&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:10:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859513#M185358</guid>
      <dc:creator>CSnyderMPH</dc:creator>
      <dc:date>2025-10-27T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859572#M185362</link>
      <description>&lt;P&gt;RETURN is not part of any particular DAX function, it is part of the general DAX syntax, like EVALUATE, DEFINE and VAR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/defining-variables-in-dax-queries/" target="_blank" rel="noopener"&gt;Defining variables in DAX queries - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your use case you create a dimension table over [Response ID], then join both fact tables against that, and then you can use a standard table visual without any code.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:08:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859572#M185362</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-10-27T14:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859593#M185363</link>
      <description>&lt;P&gt;Apologies if I misunderstand. Yes, I understand return as a part of the dax syntax, but not how it is relevent in the context of the Generate functions, since that should only be accepting two arguments, as two tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would that join go about filtering either table in your recommendation then? Ideally, I want to do this without creating any new relationships that may cause the dreaded ambiguity betwen my extant filters and relationships.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859593#M185363</guid>
      <dc:creator>CSnyderMPH</dc:creator>
      <dc:date>2025-10-27T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859597#M185365</link>
      <description>&lt;P&gt;Any argument in any DAX function can be a full DAX script as long as it returns the right data type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR A = SUMMARIZE(VAR B = 'Dates' RETURN B,[Date])&lt;/P&gt;
&lt;P&gt;RETURN A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; I want to do this without creating any new relationships &lt;/LI-CODE&gt;
&lt;P&gt;Please reconsider.&amp;nbsp; If your data model is sound (star/snowflake schema, no bidirectionals, no linked fact tables, no bridge tables)&amp;nbsp; then you should be able to cover all scenarios.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859597#M185365</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-10-27T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859660#M185367</link>
      <description>&lt;P&gt;I appreciate the best practice of relationships, but as I cannot make a relationship across a sliding date range, I do not see how I can implement this into my solution.&lt;/P&gt;&lt;P&gt;If you have any guidance into dynamic relationships, please let me know. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:16:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859660#M185367</guid>
      <dc:creator>CSnyderMPH</dc:creator>
      <dc:date>2025-10-27T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859680#M185368</link>
      <description>&lt;P&gt;Replying to myself to post&amp;nbsp;&lt;EM&gt;a&lt;/EM&gt; solution that does what I described, but I'm sure is quite inelegant and time-inefficient:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
// Raw crossjoin with a cart product of both tables
var cjtab =
	CROSSJOIN(
		MSD_Program_Outputs, // Table of all outputs, which could be associated to a survey
		MSFP_Voice_SurveyResponseTrace // Table of all responses, which have one or more outputs that would have triggered sending the survey
	)

// Filtering logic required	
var filttab = 
	FILTER(
		cjtab,
		[Regarding ID] = [nwc_outputhousehold] &amp;amp;&amp;amp; // Cull the cart prod table to only include matching rows
		[Output Date] &amp;lt; [Invite Date] &amp;amp;&amp;amp; // Output has to have occurred before the survey invite
		[Output Date] &amp;gt;= [Invite Date] - 30 // Output has to have occurred within 30 days of the survey invite
	)
	
return filttab&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:30:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859680#M185368</guid>
      <dc:creator>CSnyderMPH</dc:creator>
      <dc:date>2025-10-27T15:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to filter or summarize a table by rolling criteria from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859684#M185369</link>
      <description>&lt;P&gt;for dynamic relationships you can use measures as TREATAS to transfer filters between unrelated tables.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 15:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-filter-or-summarize-a-table-by-rolling-criteria-from/m-p/4859684#M185369</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-10-27T15:31:29Z</dc:date>
    </item>
  </channel>
</rss>

