<?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 Count the result of a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2790555#M87598</link>
    <description>&lt;P&gt;On a previous post I received amazing help in: "Filter single column with multiple conditions (words in a string)"&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Filter-single-column-with-multiple-conditions-words-in-a-string/m-p/2782155#M87072" target="_blank" rel="noopener"&gt;Solved: Re: Filter single column with multiple conditions ... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Find text that has "red" and "green" in single column&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Selector Measure = 
  VAR __Name = MAX('Table'[NAME])
  VAR __Table = SUMMARIZE('Table',[NAME],"__STRING",CONCATENATEX('Table',[STRING]))
  VAR __Table1 = ADDCOLUMNS(__Table,"__Red",SEARCH("red",[__STRING],,0),"__Green",SEARCH("green",[__STRING],,0))
  VAR __Names = DISTINCT(SELECTCOLUMNS(FILTER(__Table1,[__Red]&amp;gt;0 &amp;amp;&amp;amp; [__Green]&amp;gt;0),"__Name",[NAME]))
RETURN
  IF(__Name IN __Names,1,0)&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I want to count the results of the Measure and followed this post and few others but could not get it to work.&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Is-it-possible-to-count-the-result-of-a-measure/m-p/520128" target="_blank" rel="noopener"&gt;Solved: Is it possible to count the result of a measure? - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;As always, any insight would be appreciated!&lt;/P&gt;&lt;P class=""&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 20:35:37 GMT</pubDate>
    <dc:creator>dnana</dc:creator>
    <dc:date>2022-09-23T20:35:37Z</dc:date>
    <item>
      <title>Count the result of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2790555#M87598</link>
      <description>&lt;P&gt;On a previous post I received amazing help in: "Filter single column with multiple conditions (words in a string)"&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Filter-single-column-with-multiple-conditions-words-in-a-string/m-p/2782155#M87072" target="_blank" rel="noopener"&gt;Solved: Re: Filter single column with multiple conditions ... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Find text that has "red" and "green" in single column&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Selector Measure = 
  VAR __Name = MAX('Table'[NAME])
  VAR __Table = SUMMARIZE('Table',[NAME],"__STRING",CONCATENATEX('Table',[STRING]))
  VAR __Table1 = ADDCOLUMNS(__Table,"__Red",SEARCH("red",[__STRING],,0),"__Green",SEARCH("green",[__STRING],,0))
  VAR __Names = DISTINCT(SELECTCOLUMNS(FILTER(__Table1,[__Red]&amp;gt;0 &amp;amp;&amp;amp; [__Green]&amp;gt;0),"__Name",[NAME]))
RETURN
  IF(__Name IN __Names,1,0)&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I want to count the results of the Measure and followed this post and few others but could not get it to work.&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Is-it-possible-to-count-the-result-of-a-measure/m-p/520128" target="_blank" rel="noopener"&gt;Solved: Is it possible to count the result of a measure? - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;As always, any insight would be appreciated!&lt;/P&gt;&lt;P class=""&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 20:35:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2790555#M87598</guid>
      <dc:creator>dnana</dc:creator>
      <dc:date>2022-09-23T20:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Count the result of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2790911#M87620</link>
      <description>&lt;LI-CODE lang="csharp"&gt;// You can hide the [Selector Measure]
// from the user's view and use the following
// instead. It'll do what the other does
// and also will summarize correctly unlike the other.
// You can also replace the [Selector Measure]
// with its body inside the new measure and
// then get rid of the old one completely.
// Up to you.

[Your New Measure] =
sumx(
    values( 'Table'[Name] ),
    [Selector Measure]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 24 Sep 2022 07:51:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2790911#M87620</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-09-24T07:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count the result of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2803710#M88322</link>
      <description>&lt;P&gt;Thank your help. I appreciate the explanation!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:44:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-the-result-of-a-measure/m-p/2803710#M88322</guid>
      <dc:creator>dnana</dc:creator>
      <dc:date>2022-09-28T17:44:30Z</dc:date>
    </item>
  </channel>
</rss>

