<?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: True/False column after evaluating a set of rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679239#M80161</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support on this. When I try your solution in my sample file/data I posted earlier it works perfectly. However, when I try this in my dataset (which it has the same structure/logic than the sample) for some reason is not giving the same output. Ive attached a portion of the dataset with both the sample data and this one with the solution.&lt;BR /&gt;&lt;BR /&gt;&lt;A title="SamplePBIX" href="https://1drv.ms/u/s!AnJBkEnMkXu0qndqH2zG6bWKZ3u_?e=8PGxF0" target="_self"&gt;SamplePBIX&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Which could be the issue? When I read the logic behind your column I see that the output should be correct for my dataset as it is in the sample data.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 16:03:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-03T16:03:47Z</dc:date>
    <item>
      <title>True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679125#M80157</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a Column in DAX to create the Bold Column in below Table. It would evaluate if each row# has a True Match in "Match?" Column, then new column will be True, otherwise False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Row#&lt;/TD&gt;&lt;TD&gt;Attribute&lt;/TD&gt;&lt;TD&gt;ValueBase&lt;/TD&gt;&lt;TD&gt;ValueCompare&lt;/TD&gt;&lt;TD&gt;Match?&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="arial black,avant garde" color="#000000"&gt;All Values in same Row# Match?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;False&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;False&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;False&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;T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D&gt;B&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 15:24:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679125#M80157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679173#M80158</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;solution file:&amp;nbsp;&lt;A href="https://spartabiltd-my.sharepoint.com/:u:/g/personal/avishayf_spartabi_com/EZY5rne5UH5Gr_Bm6_CnLTIBaX9mEaJah0K1sRZ7EYxPvg?e=TDFdzs" target="_blank"&gt;True False column after evaluating a set of rows 2022-08-03.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Write this calculated column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result Column = 
VAR _row = 'Table'[Row#]
VAR _values = 
    CALCULATE(
        DISTINCTCOUNT('Table'[Match?]),
        'Table'[Row#] = _row,
        REMOVEFILTERS('Table')
    )
VAR _result = 
    IF(_values = 1,  TRUE(), FALSE() )
RETURN
    _result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 15:42:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679173#M80158</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-03T15:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679239#M80161</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support on this. When I try your solution in my sample file/data I posted earlier it works perfectly. However, when I try this in my dataset (which it has the same structure/logic than the sample) for some reason is not giving the same output. Ive attached a portion of the dataset with both the sample data and this one with the solution.&lt;BR /&gt;&lt;BR /&gt;&lt;A title="SamplePBIX" href="https://1drv.ms/u/s!AnJBkEnMkXu0qndqH2zG6bWKZ3u_?e=8PGxF0" target="_self"&gt;SamplePBIX&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Which could be the issue? When I read the logic behind your column I see that the output should be correct for my dataset as it is in the sample data.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679239#M80161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679261#M80163</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;if all columns for row number are false, you want to get false?&lt;BR /&gt;Cause that's not what I did but I will add this logic if that is what you meant.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:09:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679261#M80163</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-03T16:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679267#M80165</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Result Column = 
VAR _row = 'Table (2)'[RowNumber]
VAR _test_for_true = 'Table (2)'[Is Predecessor Plan inside External Dependencies]
VAR _values = 
    CALCULATE(
        DISTINCTCOUNT('Table (2)'[Is Predecessor Plan inside External Dependencies]),
        'Table (2)'[RowNumber] = _row,
        REMOVEFILTERS('Table (2)')
    )
VAR _result = 
    IF(_values = 1 &amp;amp;&amp;amp; _test_for_true,  TRUE(), FALSE() )
RETURN
    _result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:11:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679267#M80165</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-03T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679268#M80166</link>
      <description>&lt;P&gt;Hi Sparta,&lt;BR /&gt;&lt;BR /&gt;The outcomes should be:&lt;BR /&gt;&lt;BR /&gt;If all Row# are False, then False&lt;BR /&gt;If some Row# are False and others are True, then False&lt;BR /&gt;If all Row# are True, then True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679268#M80166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T16:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679277#M80168</link>
      <description>&lt;P&gt;The test for true was the key! Ty!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679277#M80168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-03T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679280#M80169</link>
      <description>&lt;P&gt;my pleasure &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;P.S. Kudos are always welcome&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas.&amp;nbsp;Please give it a thumbs up over there if you liked it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543" target="_blank"&gt;https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 16:18:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/2679280#M80169</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-08-03T16:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: True/False column after evaluating a set of rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/3729728#M145325</link>
      <description>&lt;P&gt;Hi Sparta,&lt;BR /&gt;Can you please breakdown how -&lt;STRONG&gt;&amp;nbsp;_test_for_true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is working?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 06:59:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/True-False-column-after-evaluating-a-set-of-rows/m-p/3729728#M145325</guid>
      <dc:creator>SahityaYeruband</dc:creator>
      <dc:date>2024-02-28T06:59:57Z</dc:date>
    </item>
  </channel>
</rss>

