<?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: How to handle two date conditions on the same chart while keeping visual interaction in Pow in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155298#M187807</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;, I'll take a look at it and let you know.&amp;nbsp;&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 09:35:21 GMT</pubDate>
    <dc:creator>Charlespbi</dc:creator>
    <dc:date>2026-04-21T09:35:21Z</dc:date>
    <item>
      <title>How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5154511#M187788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying for several days now to solve an issue in my Power BI report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt;&lt;BR /&gt;I am analyzing ticket creation, resolution date, and compliance for a client.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How:&lt;/STRONG&gt;&lt;BR /&gt;I determine whether tickets fall within the scope of the analysis by applying several filters:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ticket type&lt;/LI&gt;&lt;LI&gt;resolution date&lt;/LI&gt;&lt;LI&gt;a date range&lt;/LI&gt;&lt;LI&gt;status&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Why:&lt;/STRONG&gt;&lt;BR /&gt;Once the tickets meet these criteria, my measure returns &lt;STRONG&gt;"OK"&lt;/STRONG&gt; if they are compliant, or &lt;STRONG&gt;"KO"&lt;/STRONG&gt; if they are not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements:&lt;/STRONG&gt;&lt;BR /&gt;First, I need to check that tickets are in &lt;STRONG&gt;"Authorized"&lt;/STRONG&gt; status and that their &lt;STRONG&gt;[duedate]&lt;/STRONG&gt; is earlier than the date selected in the filter.&lt;/P&gt;&lt;P&gt;Second, I need to check that tickets are in status &lt;STRONG&gt;("Qualified" OR "Closed")&lt;/STRONG&gt; and that &lt;STRONG&gt;[duedate]&lt;/STRONG&gt; falls within a date range selected in the filter.&lt;/P&gt;&lt;P&gt;Additional constraints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Both &lt;STRONG&gt;KO&lt;/STRONG&gt; and &lt;STRONG&gt;OK&lt;/STRONG&gt; tickets must be displayed on the same chart.&lt;/LI&gt;&lt;LI&gt;There must be only &lt;STRONG&gt;one single [duedate] date filter&lt;/STRONG&gt; on the report page.&lt;/LI&gt;&lt;LI&gt;The chart must remain interactive with the table showing the ticket details within the analysis scope. In other words, when I click on the &lt;STRONG&gt;"KO"&lt;/STRONG&gt; slice in the chart, only &lt;STRONG&gt;KO&lt;/STRONG&gt; tickets should appear in the table. Same for &lt;STRONG&gt;OK&lt;/STRONG&gt; tickets.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formula with the date filters included, just to illustrate the logic:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;C1 = 
IF(
    AND(
        OR(
            NOT(AND(
                'TABLE'[statusName] = "Authorized",
                'TABLE'[duedate]&amp;lt;=DATE(2025,12,15)
            )),
            'TABLE'[statusName] IN {"Technically qualified", "Operationally qualified", "Closed"} &amp;amp;&amp;amp;
            NOT(ISBLANK('TABLE'[TQ_StatusDate])) &amp;amp;&amp;amp;
            'TABLE'[duedate] &amp;gt;= DATE(2025,09,01) &amp;amp;&amp;amp;
            'TABLE'[duedate] &amp;lt;= DATE(2025,12,15)
            ),
            'TABLE'[TQ_StatusDate]&amp;lt;='TABLE'[duedate]
    ),
    "OK",
    "KO"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;BR /&gt;If I filter on the interval from &lt;STRONG&gt;2025-09-01&lt;/STRONG&gt; to &lt;STRONG&gt;2025-12-15&lt;/STRONG&gt;, the first part of my formula is no longer exhaustive, because for that part I need to include &lt;STRONG&gt;everything before 2025-12-15&lt;/STRONG&gt;, not just what falls inside the selected interval.&lt;/P&gt;&lt;P&gt;I managed to work around this by using the &lt;STRONG&gt;ALL()&lt;/STRONG&gt; function (to remove the date constraint) in order to &lt;STRONG&gt;count&lt;/STRONG&gt; tickets matching the criteria and display them in a single chart, but this only gives me aggregated counts and removes the interaction with the detail table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:46:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5154511#M187788</guid>
      <dc:creator>Charlespbi</dc:creator>
      <dc:date>2026-04-21T08:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5154619#M187790</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;i think you need to use a separate date table. Could you attach a pbix file? It will be easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 13:51:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5154619#M187790</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2026-04-20T13:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155251#M187805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1582088" data-lia-user-login="Charlespbi" class="lia-mention lia-mention-user"&gt;Charlespbi&lt;/a&gt;&amp;nbsp;have applied the conditions, please review if this solves the issue.&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, 21 Apr 2026 08:09:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155251#M187805</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-04-21T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155267#M187806</link>
      <description>&lt;P&gt;Hello, I cannot share a .pbix file, I don't have the "super user" rights.&lt;BR /&gt;&lt;A href="https://drive.google.com/drive/folders/14ogpfMw5kY8su1PahFjJchJnRjz4lOSB?usp=drive_link" target="_blank" rel="noopener"&gt;https://drive.google.com/drive/folders/14ogpfMw5kY8su1PahFjJchJnRjz4lOSB?usp=drive_link&lt;/A&gt;&lt;BR /&gt;I can only share a Gdrive link.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155267#M187806</guid>
      <dc:creator>Charlespbi</dc:creator>
      <dc:date>2026-04-21T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155298#M187807</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;, I'll take a look at it and let you know.&amp;nbsp;&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 09:35:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5155298#M187807</guid>
      <dc:creator>Charlespbi</dc:creator>
      <dc:date>2026-04-21T09:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156043#M187819</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;, that solves the problem ; thank you very much.&lt;BR /&gt;Unfortunately, another issue has come up.&lt;BR /&gt;&lt;BR /&gt;Let’s say I want to filter tickets by resolver group. Since there is no relationship between the ‘ComplianceCategories’ table and the ‘Tickets’ table, the filters don’t apply to the chart.&lt;BR /&gt;&lt;BR /&gt;Should I follow the same logic as for the ‘SlicerDate’ table and create a ‘Contract’ table?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2026 15:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156043#M187819</guid>
      <dc:creator>Charlespbi</dc:creator>
      <dc:date>2026-04-22T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156233#M187827</link>
      <description>&lt;P&gt;yes, and also&amp;nbsp;Replace ALL with ALLSELECTED in Count OK and Count KO so any slicer on the Tickets table works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 05:41:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156233#M187827</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2026-04-23T05:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle two date conditions on the same chart while keeping visual interaction in Pow</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156502#M187831</link>
      <description>&lt;P&gt;It works&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645372" data-lia-user-login="techies" class="lia-mention lia-mention-user"&gt;techies&lt;/a&gt;,&amp;nbsp;thank you so much.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 13:47:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-two-date-conditions-on-the-same-chart-while/m-p/5156502#M187831</guid>
      <dc:creator>Charlespbi</dc:creator>
      <dc:date>2026-04-23T13:47:17Z</dc:date>
    </item>
  </channel>
</rss>

