<?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 Replace value based in a condition from another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/963334#M11369</link>
    <description>&lt;P&gt;Dear Friends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to replace values in my dataset based in a condition from other column. If the confition is true i want to fill one column if the related value of the condition (same column)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow an example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;group&lt;/TD&gt;&lt;TD&gt;Tag&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;vm1-disk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;vm1-olddisk&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The common values between all columns is the group name, i want to analyze this column and fill the tag column that are blank with the already filled row (azure). so if tag row that are blank, should be filled with the filled tag looking to the group column as condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried some ways, but nothing worked, someone could give me help?&lt;/P&gt;</description>
    <pubDate>Sun, 08 Mar 2020 01:14:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-08T01:14:24Z</dc:date>
    <item>
      <title>Replace value based in a condition from another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/963334#M11369</link>
      <description>&lt;P&gt;Dear Friends.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to replace values in my dataset based in a condition from other column. If the confition is true i want to fill one column if the related value of the condition (same column)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Follow an example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;group&lt;/TD&gt;&lt;TD&gt;Tag&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;vm1-disk&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;azure&lt;/TD&gt;&lt;TD&gt;vm1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rg123&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;vm1-olddisk&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The common values between all columns is the group name, i want to analyze this column and fill the tag column that are blank with the already filled row (azure). so if tag row that are blank, should be filled with the filled tag looking to the group column as condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried some ways, but nothing worked, someone could give me help?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 01:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/963334#M11369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-08T01:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace value based in a condition from another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/963348#M11371</link>
      <description>&lt;P&gt;I don't know about replacing data, but you could make a new column like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Tag = 
  IF(NOT(ISBLANK([Tag])),
    [Tag],
    MAXX(FILTER('Table','Table'[group] = EARLIER('Table'[group])),[Tag])
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 08 Mar 2020 03:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/963348#M11371</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-08T03:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace value based in a condition from another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/967685#M11506</link>
      <description>&lt;P&gt;HI Greg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for you reply, it worked for me, some row keep blank, but i guess that there is now rows filled in my dataset to use in the RGName, but for the row that have the information, the new column brougth the information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would like to understand better the command, could you quikcly explain exaclty what it does?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 23:11:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Replace-value-based-in-a-condition-from-another-column/m-p/967685#M11506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T23:11:12Z</dc:date>
    </item>
  </channel>
</rss>

