<?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 List customers with a visit outside of selected dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3988431#M154605</link>
    <description>&lt;P&gt;I have the date filter &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apenaranda_0-1718187969500.png" style="width: 400px;"&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have the measure that verifies if a customer has had a visit in that range, this is fine.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;Seguimiento_Cliente = CALCULATE(COUNT(MovInteracciones_sql[Interaction Template Code]),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now I would like to know which client has visited but outside those dates.&lt;/P&gt;&lt;P&gt;I've tried the following but it doesn't quite work for me.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;# Cli Sin Visitas en periodo = 
VAR ClientesPrimeraVisita = 
ADDCOLUMNS(
    VALUES(MovInteracciones_sql[Contact No_]),
    "UtimaVisita",
    CALCULATE(
        MAX(MovInteracciones_sql[Date]),
        ALL(Fechas),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT"
    )
)
VAR ClientesVisita = 
FILTER(
    ClientesPrimeraVisita,
    NOT [UtimaVisita] IN VALUES(Fechas[Date]) &amp;amp;&amp;amp; NOT(ISBLANK([UtimaVisita]))
)
VAR Resultado = COUNTROWS(ClientesVisita)
RETURN Resultado&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 11:35:09 GMT</pubDate>
    <dc:creator>Syndicate_Admin</dc:creator>
    <dc:date>2024-06-12T11:35:09Z</dc:date>
    <item>
      <title>List customers with a visit outside of selected dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3988431#M154605</link>
      <description>&lt;P&gt;I have the date filter &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apenaranda_0-1718187969500.png" style="width: 400px;"&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have the measure that verifies if a customer has had a visit in that range, this is fine.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;Seguimiento_Cliente = CALCULATE(COUNT(MovInteracciones_sql[Interaction Template Code]),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now I would like to know which client has visited but outside those dates.&lt;/P&gt;&lt;P&gt;I've tried the following but it doesn't quite work for me.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;# Cli Sin Visitas en periodo = 
VAR ClientesPrimeraVisita = 
ADDCOLUMNS(
    VALUES(MovInteracciones_sql[Contact No_]),
    "UtimaVisita",
    CALCULATE(
        MAX(MovInteracciones_sql[Date]),
        ALL(Fechas),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT"
    )
)
VAR ClientesVisita = 
FILTER(
    ClientesPrimeraVisita,
    NOT [UtimaVisita] IN VALUES(Fechas[Date]) &amp;amp;&amp;amp; NOT(ISBLANK([UtimaVisita]))
)
VAR Resultado = COUNTROWS(ClientesVisita)
RETURN Resultado&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 11:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3988431#M154605</guid>
      <dc:creator>Syndicate_Admin</dc:creator>
      <dc:date>2024-06-12T11:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: List customers with a visit outside of selected dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3989756#M154703</link>
      <description>&lt;P&gt;If that date column is connected to your fact table then it will not be possible. You will need to feed the slicer from a disconnected table.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 00:46:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3989756#M154703</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-13T00:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: List customers with a visit outside of selected dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3990268#M154746</link>
      <description>&lt;P&gt;The table where the interactions are and know if there is a visit or not has a column also dated that is connected to the dates.&lt;/P&gt;&lt;P&gt;I don't quite understand what you're saying about the column date this connected to table facts. And I don't know what you mean by powering a "cutter" from a disconnected board.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 06:04:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3990268#M154746</guid>
      <dc:creator>apenaranda</dc:creator>
      <dc:date>2024-06-13T06:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: List customers with a visit outside of selected dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3991007#M154790</link>
      <description>&lt;P&gt;Ah, the joys of translation...&amp;nbsp; "slicer"&amp;nbsp; means a filter visual&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;
&lt;P&gt;"board"&amp;nbsp; means table&amp;nbsp; (in your data model)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-customers-with-a-visit-outside-of-selected-dates/m-p/3991007#M154790</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-13T11:50:59Z</dc:date>
    </item>
  </channel>
</rss>

