<?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 How to grab a value from one column row based on a condition of another column row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4009141#M157484</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relatively new to Power BI. I am just using one table here. I just want to retrieve the value (simply get the value, no calculation) of one column, based on a condition of another column, and place that value into a new, third column.&lt;BR /&gt;&lt;BR /&gt;So for example:&lt;/P&gt;&lt;P&gt;Animal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New Column&lt;/P&gt;&lt;P&gt;Beaver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Lizard&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;Monkey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mammal&lt;/P&gt;&lt;P&gt;Snake&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reptile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the &lt;EM&gt;Type&lt;/EM&gt; = Mammal then I'd like the &lt;EM&gt;Animal&lt;/EM&gt; value placed in &lt;EM&gt;New Column&lt;/EM&gt;. How is this done??&lt;BR /&gt;&lt;BR /&gt;Result should be this:&lt;/P&gt;&lt;P&gt;Animal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New Column&lt;/P&gt;&lt;P&gt;Beaver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Beaver&lt;/P&gt;&lt;P&gt;Lizard&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;Monkey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Monkey&lt;/P&gt;&lt;P&gt;Snake&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus points for putting a value in the blanks, like "null" or "NA". Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 13:09:55 GMT</pubDate>
    <dc:creator>faronicus</dc:creator>
    <dc:date>2024-06-25T13:09:55Z</dc:date>
    <item>
      <title>How to grab a value from one column row based on a condition of another column row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4009141#M157484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relatively new to Power BI. I am just using one table here. I just want to retrieve the value (simply get the value, no calculation) of one column, based on a condition of another column, and place that value into a new, third column.&lt;BR /&gt;&lt;BR /&gt;So for example:&lt;/P&gt;&lt;P&gt;Animal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New Column&lt;/P&gt;&lt;P&gt;Beaver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Lizard&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;Monkey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mammal&lt;/P&gt;&lt;P&gt;Snake&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reptile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the &lt;EM&gt;Type&lt;/EM&gt; = Mammal then I'd like the &lt;EM&gt;Animal&lt;/EM&gt; value placed in &lt;EM&gt;New Column&lt;/EM&gt;. How is this done??&lt;BR /&gt;&lt;BR /&gt;Result should be this:&lt;/P&gt;&lt;P&gt;Animal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New Column&lt;/P&gt;&lt;P&gt;Beaver&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Beaver&lt;/P&gt;&lt;P&gt;Lizard&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;Monkey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mammal&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Monkey&lt;/P&gt;&lt;P&gt;Snake&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reptile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus points for putting a value in the blanks, like "null" or "NA". Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 13:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4009141#M157484</guid>
      <dc:creator>faronicus</dc:creator>
      <dc:date>2024-06-25T13:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to grab a value from one column row based on a condition of another column row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4010024#M157758</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="765649" data-lia-user-login="faronicus" class="lia-mention lia-mention-user"&gt;faronicus&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I am glad to help you.&lt;BR /&gt;You could try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Column = IF('Table'[Type] = "Mammal", 'Table'[Animal], BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;New Column2 = IF('Table'[Type] = "Mammal", 'Table'[Animal], "NA")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;the test result :&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Carson Jian,&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 01:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4010024#M157758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T01:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to grab a value from one column row based on a condition of another column row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4018558#M158495</link>
      <description>&lt;P&gt;Thank you, that's what I wanted!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 12:43:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-grab-a-value-from-one-column-row-based-on-a-condition-of/m-p/4018558#M158495</guid>
      <dc:creator>faronicus</dc:creator>
      <dc:date>2024-07-01T12:43:21Z</dc:date>
    </item>
  </channel>
</rss>

