<?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: DAX Formula review only (Overlapping Start and End Dates by Roles and their specialisation) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4261622#M168900</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426400" data-lia-user-login="Deevo_" class="lia-mention lia-mention-user"&gt;Deevo_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked your code, and I am confused about how did you create relationship between two tables.&lt;/P&gt;
&lt;P&gt;As far as I know, there could only one active relationship between two tables. &lt;BR /&gt;However, you need to use the projectname and role name to determine the start date and end date values.&lt;/P&gt;
&lt;P&gt;I think selectvalue() for data in &lt;SPAN&gt;Projects (In flight)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;will not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you need to calculate the data with more filters like&amp;nbsp;Projects (Costings)[Name] =&amp;nbsp; Projects (In flight)[Name] and&amp;nbsp;Projects (Costings)[Role] =&amp;nbsp; Projects (In flight)[Role]. Then compare the dates in two tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this reply still couldn't help you solve your issue, please share a easy sample file with us and show us a screenshot with the result you want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 06:16:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-29T06:16:34Z</dc:date>
    <item>
      <title>DAX Formula review only (Overlapping Start and End Dates by Roles and their specialisation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4260014#M168817</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Sorry I cannot provide sample data.&amp;nbsp;Can someone please help me review the structure of this dax measure?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background info:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2 Data sources&lt;UL&gt;&lt;LI&gt;Project costings (not in flight) have roles and specialisation combos and each combo has a work start and end date&lt;/LI&gt;&lt;LI&gt;Projects in flight also have&amp;nbsp;roles and specialisation combos and each combo has a work start and end date&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;What the measure is suppose to do:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;From a single selection list, a "project costing code" is selected.&lt;/LI&gt;&lt;LI&gt;The roles and specialisations within the "project costing code" are compared to the exact same roles and specialisations combos of "projects that are currently in flight" AND have overlapping work start and end dates.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;How this measure is applied in the visual:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Apply this measure on the table filter and apply "is not blank".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;The expected result&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Return "projects that are currently in flight"&amp;nbsp;AND have overlapping work start and end dates for the exact same roles and specialisation combo as the "Project costing".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;DAX Measure:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;Project Costing Has Role overlap with In Flight Projects =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VAR SelectedCosting = SELECTEDVALUE('Projects (Costings)'[CostingDisplayName])&lt;/DIV&gt;&lt;DIV&gt;VAR SelectedCostingStart = SELECTEDVALUE('Projects (Costings)'[CostingStartDate].[Date])&lt;/DIV&gt;&lt;DIV&gt;VAR SelectedCostingFinish = SELECTEDVALUE('Projects (Costings)'[CostingFinishDate].[Date])&lt;/DIV&gt;&lt;DIV&gt;VAR InFlightProjectStart = SELECTEDVALUE('Projects (In flight)'[InFlightStartDate].[Date])&lt;/DIV&gt;&lt;DIV&gt;VAR InFlightProjectFinish = SELECTEDVALUE('Projects (In flight)'[InFlightFinishDate].[Date])&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VAR SelectedCostingRole = SELECTEDVALUE('Projects (Costings)'[RoleName])&lt;/DIV&gt;&lt;DIV&gt;VAR SelectedCostingSpecialisation = SELECTEDVALUE('Projects (Costings)'[SpecialisationName])&lt;/DIV&gt;&lt;DIV&gt;VAR InFlightProjectRole = SELECTEDVALUE('Projects (In flight)'[RoleName])&lt;/DIV&gt;&lt;DIV&gt;VAR InFlightProjectSpecialisation = SELECTEDVALUE('Projects (In flight)'[SpecialisationName])&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VAR HasOverlap =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ((InFlightProjectFinish &amp;lt;= SelectedCostingFinish &amp;amp;&amp;amp; InFlightProjectFinish &amp;gt;= SelectedCostingStart) &amp;amp;&amp;amp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(InFlightProjectRole = SelectedCostingRole &amp;amp;&amp;amp; InFlightProjectSpecialisation = SelectedCostingSpecialisation))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;||&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ((InFlightProjectStart &amp;gt;= SelectedCostingStart &amp;amp;&amp;amp; InFlightProjectStart &amp;lt;= SelectedCostingFinish) &amp;amp;&amp;amp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(InFlightProjectRole = SelectedCostingRole &amp;amp;&amp;amp; InFlightProjectSpecialisation = SelectedCostingSpecialisation))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;RETURN&lt;/DIV&gt;&lt;DIV&gt;IF(HASONEVALUE('Projects (Costings)'[CostingDisplayName]) &amp;amp;&amp;amp; HasOverlap,"Overlap",BLANK())&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Oct 2024 07:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4260014#M168817</guid>
      <dc:creator>Deevo_</dc:creator>
      <dc:date>2024-10-28T07:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula review only (Overlapping Start and End Dates by Roles and their specialisation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4260513#M168845</link>
      <description>&lt;P&gt;Yes, you can provide sample data. Make an effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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. Do not include anything that is unrelated to the issue or question. &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;&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>Mon, 28 Oct 2024 12:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4260513#M168845</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-28T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula review only (Overlapping Start and End Dates by Roles and their specialisation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4261622#M168900</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426400" data-lia-user-login="Deevo_" class="lia-mention lia-mention-user"&gt;Deevo_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked your code, and I am confused about how did you create relationship between two tables.&lt;/P&gt;
&lt;P&gt;As far as I know, there could only one active relationship between two tables. &lt;BR /&gt;However, you need to use the projectname and role name to determine the start date and end date values.&lt;/P&gt;
&lt;P&gt;I think selectvalue() for data in &lt;SPAN&gt;Projects (In flight)&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;will not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think you need to calculate the data with more filters like&amp;nbsp;Projects (Costings)[Name] =&amp;nbsp; Projects (In flight)[Name] and&amp;nbsp;Projects (Costings)[Role] =&amp;nbsp; Projects (In flight)[Role]. Then compare the dates in two tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this reply still couldn't help you solve your issue, please share a easy sample file with us and show us a screenshot with the result you want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 06:16:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4261622#M168900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-29T06:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula review only (Overlapping Start and End Dates by Roles and their specialisation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4266462#M169108</link>
      <description>&lt;P&gt;Hi Rico, Thanks for your reply. Sorry I am on a work computer and they have restrictions on personal drives (google drive, dropbox). I did create a file but now i cannot upload it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for providing me with some ideas. I re-wrote one section of my DAX. I believe I now have what I need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From this:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;VAR HasOverlap =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ((InFlightProjectFinish &amp;lt;= SelectedCostingFinish &amp;amp;&amp;amp; InFlightProjectFinish &amp;gt;= SelectedCostingStart) &amp;amp;&amp;amp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(InFlightProjectRole = SelectedCostingRole &amp;amp;&amp;amp; InFlightProjectSpecialisation = SelectedCostingSpecialisation))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;||&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ((InFlightProjectStart &amp;gt;= SelectedCostingStart &amp;amp;&amp;amp; InFlightProjectStart &amp;lt;= SelectedCostingFinish) &amp;amp;&amp;amp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(InFlightProjectRole = SelectedCostingRole &amp;amp;&amp;amp; InFlightProjectSpecialisation = SelectedCostingSpecialisation))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;To This:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;HasOverlap&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(InFlight&lt;/SPAN&gt;&lt;SPAN&gt;ProjectRole&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingRole&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; InFlightProjectSpecialisation &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingSpecialisation&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (InFlight&lt;/SPAN&gt;&lt;SPAN&gt;ProjectFinish&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingFinish&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; InFlight&lt;/SPAN&gt;&lt;SPAN&gt;ProjectFinish&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingStart&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;|| &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (InFlight&lt;/SPAN&gt;&lt;SPAN&gt;ProjectStart&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingStart&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; InFlight&lt;/SPAN&gt;&lt;SPAN&gt;ProjectStart&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;SelectedCostingFinish&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Nov 2024 05:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-review-only-Overlapping-Start-and-End-Dates-by-Roles/m-p/4266462#M169108</guid>
      <dc:creator>Deevo_</dc:creator>
      <dc:date>2024-11-01T05:21:50Z</dc:date>
    </item>
  </channel>
</rss>

