<?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: Creating a Episode reference with DAX based on start and end dates across multiple rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3959120#M153646</link>
    <description>&lt;P&gt;Your sample data is inconclusive. All IDs have contiguous date intervals meaning each has a single episode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 00:12:37 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-05-30T00:12:37Z</dc:date>
    <item>
      <title>Creating a Episode reference with DAX based on start and end dates across multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3942860#M153274</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am trying to use DAX to create a unique episode reference for each row that is part of a single episode. As a starting point I have already created unique Index in Power Query for each person as defined by their ID number before loading into my report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An episode should be a collection of all rows for the same Index number whereby the Finance Start Date is either the same as the previous rows Finance End Date or +1 days. So for Index 0, I want all 3 of those rows to be assigned the same ID number as the dates are consectutive from 04/01/18 to 21/02/18. If there was then another entry with a break in dates, I'd want a new reference creating and so on and so forth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 09:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3942860#M153274</guid>
      <dc:creator>CJLewis87</dc:creator>
      <dc:date>2024-05-23T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Episode reference with DAX based on start and end dates across multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3945048#M153305</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;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &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;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&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>Thu, 23 May 2024 21:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3945048#M153305</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-23T21:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Episode reference with DAX based on start and end dates across multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3955512#M153540</link>
      <description>&lt;P&gt;&lt;A href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1qoQKlGZv2qzZxfmP3H89Di47mDcc2Ob4%2Fview%3Fusp%3Dsharing&amp;amp;data=05%7C02%7CCalum.Lewis%40shropshire.gov.uk%7Cce678c9bd4cf474f80a308dc7f28bc16%7Cb6c13011372d438bbc8267e4c7966e89%7C0%7C0%7C638525060134053871%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=levh%2FNVIghHF500eRjH%2FiI%2F%2B%2FDjRe7tdlSwuD4Hvhv4%3D&amp;amp;reserved=0" target="_blank"&gt;https://drive.google.com/file/d/1qoQKlGZv2qzZxfmP3H89Di47mDcc2Ob4/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a sample pbix file on Google Drive. The file contains the query with any confidential data removed. The data includes "ID", "Placement Grouping", "Finance Start Date", "Finance End Date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that in mind, I want to create a unique reference number for each episode of care, which I am defining as having the same ID number, same placement grouping and consecutive dates across rows, without any break in dates. So for example, ID number 4636 has 5 seperate rows making up the single episode, so I'd like perhaps "Res4636-1" to show on all rows forming that episode with a column called "Episode ID".&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;</description>
      <pubDate>Tue, 28 May 2024 15:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3955512#M153540</guid>
      <dc:creator>CJLewis87</dc:creator>
      <dc:date>2024-05-28T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Episode reference with DAX based on start and end dates across multiple rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3959120#M153646</link>
      <description>&lt;P&gt;Your sample data is inconclusive. All IDs have contiguous date intervals meaning each has a single episode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 00:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-Episode-reference-with-DAX-based-on-start-and-end/m-p/3959120#M153646</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-30T00:12:37Z</dc:date>
    </item>
  </channel>
</rss>

