<?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: If Any Row with a Specific ID contains &amp;quot;Closed&amp;quot; then Return &amp;quot;Closed&amp;quot; Value in All Rows for ID in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3906899#M152202</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393588" data-lia-user-login="DMB90" class="lia-mention lia-mention-user"&gt;DMB90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try below formula to create calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Status Result = 
VAR CurrentID = 'YourTable'[ID]
VAR ClosedCheck = 
    CALCULATE(
        COUNTROWS('YourTable'),
        FILTER(
            'YourTable',
            'YourTable'[ID] = CurrentID &amp;amp;&amp;amp;
            'YourTable'[Status] = "Closed"
        )
    )
RETURN
    IF(
        ClosedCheck &amp;gt; 0,
        "Closed",
        "Open"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 02:11:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-10T02:11:15Z</dc:date>
    <item>
      <title>If Any Row with a Specific ID contains "Closed" then Return "Closed" Value in All Rows for ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3906635#M152184</link>
      <description>&lt;P&gt;I have a column with a specific ID listed several times and I'm trying to check if any row with a specific ID contains a "Closed" status and if so mark it as "Closed" but if all rows with a specific ID are blank in status, then mark it as "Open" in the newly created column.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 22:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3906635#M152184</guid>
      <dc:creator>DMB90</dc:creator>
      <dc:date>2024-05-09T22:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Any Row with a Specific ID contains "Closed" then Return "Closed" Value in All Rows for ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3906899#M152202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="393588" data-lia-user-login="DMB90" class="lia-mention lia-mention-user"&gt;DMB90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try below formula to create calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Status Result = 
VAR CurrentID = 'YourTable'[ID]
VAR ClosedCheck = 
    CALCULATE(
        COUNTROWS('YourTable'),
        FILTER(
            'YourTable',
            'YourTable'[ID] = CurrentID &amp;amp;&amp;amp;
            'YourTable'[Status] = "Closed"
        )
    )
RETURN
    IF(
        ClosedCheck &amp;gt; 0,
        "Closed",
        "Open"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 02:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3906899#M152202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-10T02:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: If Any Row with a Specific ID contains "Closed" then Return "Closed" Value in All Rows for ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3949604#M153415</link>
      <description>&lt;P&gt;The column for ID I need is already a measure and won't register. It's called "commentable_id" and is a measure and set to whole numbers.&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 19:06:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-Any-Row-with-a-Specific-ID-contains-quot-Closed-quot-then/m-p/3949604#M153415</guid>
      <dc:creator>DMB90</dc:creator>
      <dc:date>2024-05-25T19:06:42Z</dc:date>
    </item>
  </channel>
</rss>

