<?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 Subgroup analysis returning TRUE when Blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163189#M113674</link>
    <description>&lt;P&gt;Hi all, I have created a column that looks up the Customer Group column and returns true/false if any customer within that group has purchased (even if only one or two purchased).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula seems to work fine apart from it returning TRUE when the Group column is Blank (it is definitely blank, I tried Trimming and Cleaning it in Query Editor). This column has to remain blank also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like it to return FALSE if that column is blank. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IsGroupCustomer = &lt;BR /&gt;VAR _min =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS(FILTER('table', 'table'[Purchase])),&lt;BR /&gt;FILTER ( &lt;BR /&gt;'table', &lt;BR /&gt;'table'[Customer Group] = EARLIER('table'[Customer Group]) &lt;BR /&gt;&amp;amp;&amp;amp; NOT(ISBLANK('table'[Customer Group]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (ISBLANK('table'[Customer Group]), FALSE(), IF ( _min &amp;gt; 0, TRUE(), FALSE()))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 11:08:04 GMT</pubDate>
    <dc:creator>adam_macs</dc:creator>
    <dc:date>2023-03-30T11:08:04Z</dc:date>
    <item>
      <title>Subgroup analysis returning TRUE when Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163189#M113674</link>
      <description>&lt;P&gt;Hi all, I have created a column that looks up the Customer Group column and returns true/false if any customer within that group has purchased (even if only one or two purchased).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formula seems to work fine apart from it returning TRUE when the Group column is Blank (it is definitely blank, I tried Trimming and Cleaning it in Query Editor). This column has to remain blank also.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like it to return FALSE if that column is blank. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IsGroupCustomer = &lt;BR /&gt;VAR _min =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS(FILTER('table', 'table'[Purchase])),&lt;BR /&gt;FILTER ( &lt;BR /&gt;'table', &lt;BR /&gt;'table'[Customer Group] = EARLIER('table'[Customer Group]) &lt;BR /&gt;&amp;amp;&amp;amp; NOT(ISBLANK('table'[Customer Group]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (ISBLANK('table'[Customer Group]), FALSE(), IF ( _min &amp;gt; 0, TRUE(), FALSE()))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 11:08:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163189#M113674</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2023-03-30T11:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup analysis returning TRUE when Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163470#M113689</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334626" data-lia-user-login="adam_macs" class="lia-mention lia-mention-user"&gt;adam_macs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IsGroupCustomer = 
VAR _condition1 =
COUNTROWS(
    FILTER(
        TableName,
        TableName[Customer Group] = EARLIER(TableName[Customer Group])
            &amp;amp;&amp;amp;TableName[Purchase]=TRUE
    )
)&amp;gt;=1
VAR _condition2 =
TableName[Customer Group]&amp;lt;&amp;gt;BLANK()
RETURN
IF(
    _condition1&amp;amp;&amp;amp;_condition2,
    TRUE, FALSE
)&lt;/LI-CODE&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>Thu, 30 Mar 2023 13:01:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163470#M113689</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-30T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup analysis returning TRUE when Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163474#M113690</link>
      <description>&lt;P&gt;this shall also work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IsGroupCustomer = 
VAR _condition1 =
COUNTROWS(
    FILTER(
        TableName,
        TableName[Customer Group] = EARLIER(TableName[Customer Group])
            &amp;amp;&amp;amp;TableName[Purchase]
    )
)&amp;gt;=1
VAR _condition2 =
TableName[Customer Group]&amp;lt;&amp;gt;BLANK()
RETURN
IF(
    _condition1&amp;amp;&amp;amp;_condition2,
    TRUE, FALSE
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163474#M113690</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-30T13:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subgroup analysis returning TRUE when Blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163529#M113694</link>
      <description>&lt;P&gt;That worked a treat, thanks very much!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:20:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Subgroup-analysis-returning-TRUE-when-Blank/m-p/3163529#M113694</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2023-03-30T13:20:47Z</dc:date>
    </item>
  </channel>
</rss>

