<?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 Populate Conditional Column by Common ID in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953488#M10802</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Power BI, and I am stuck on the best way to solve an issue. The requirement is to populate multiple columns based multiple criteria from multi-rowed data. I was able to get the conditional column set up correctly, but I would like the rows to populate on all rows based on that ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Criteria 1&lt;/TD&gt;&lt;TD&gt;Critera 2&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;Meets&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Doest not meet&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to see success = yes for all rows for any time there is a success based on any subsequent rows. What is the best way to accomplish this within Power Query? I was able to get this to work on the report layer by adding in a column that concatenated the values, and another that checked that column for data, but I would like a better way since there will be multiple "success" columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 20:31:36 GMT</pubDate>
    <dc:creator>dfricker</dc:creator>
    <dc:date>2020-02-28T20:31:36Z</dc:date>
    <item>
      <title>Populate Conditional Column by Common ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953488#M10802</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to Power BI, and I am stuck on the best way to solve an issue. The requirement is to populate multiple columns based multiple criteria from multi-rowed data. I was able to get the conditional column set up correctly, but I would like the rows to populate on all rows based on that ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Criteria 1&lt;/TD&gt;&lt;TD&gt;Critera 2&lt;/TD&gt;&lt;TD&gt;Success&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;Meets&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;Does not meet&lt;/TD&gt;&lt;TD&gt;Doest not meet&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to see success = yes for all rows for any time there is a success based on any subsequent rows. What is the best way to accomplish this within Power Query? I was able to get this to work on the report layer by adding in a column that concatenated the values, and another that checked that column for data, but I would like a better way since there will be multiple "success" columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 20:31:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953488#M10802</guid>
      <dc:creator>dfricker</dc:creator>
      <dc:date>2020-02-28T20:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Conditional Column by Common ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953521#M10803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it ok to have a calculated column instead of using Power Query (since this is in the DAX forum)? Perhaps this can work?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Success =
VAR _rowId = 'Table'[ID]
RETURN
    IF (
        CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 1]; "Meets" )
            || CONTAINS ( ALL ( 'Table' ); 'Table'[ID]; _rowId; 'Table'[Criteria 2]; "Meets" );
        "Yes";
        "No"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards // Ulf&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 21:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953521#M10803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T21:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Conditional Column by Common ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953530#M10804</link>
      <description>&lt;P&gt;Yes, this is much cleaner than what I was doing. I could also use this to have the full logic in here.&amp;nbsp; Thanks for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 21:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953530#M10804</guid>
      <dc:creator>dfricker</dc:creator>
      <dc:date>2020-02-28T21:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Populate Conditional Column by Common ID</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953717#M10815</link>
      <description>As you rightly say - this is a job for Power Query, not DAX. Please ask this question on a Power Query forum.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sat, 29 Feb 2020 10:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Populate-Conditional-Column-by-Common-ID/m-p/953717#M10815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-29T10:07:37Z</dc:date>
    </item>
  </channel>
</rss>

