<?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: Conditional Column with two conditions (text columns) and IF result is a Column, else other colum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Column-with-two-conditions-text-columns-and-IF/m-p/1547103#M30596</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195521" data-lia-user-login="caio_queiroz" class="lia-mention lia-mention-user"&gt;caio_queiroz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please if your column1 and column2 are having text data and have the data type as text.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Column = 
IF (
    AND( Table1[Column1] = "A" , Table1[Column2] = "Brazil"), 
    Table1[CostAdjusted],
    Table1[Cost]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can share your screenshot fo the table where ou are trying to add the column with the error message&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please click &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help other members find it useful&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.excelfort.com" target="_blank"&gt;&lt;FONT color="blue"&gt;Website&lt;/FONT&gt;&lt;/A&gt; &lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2020 10:28:41 GMT</pubDate>
    <dc:creator>Fowmy</dc:creator>
    <dc:date>2020-12-13T10:28:41Z</dc:date>
    <item>
      <title>Conditional Column with two conditions (text columns) and IF result is a Column, else other colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Column-with-two-conditions-text-columns-and-IF/m-p/1546915#M30574</link>
      <description>&lt;P&gt;Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need to create a cond. column based on two other columns conditions, i tried many ways, but powerbi tell me that i cant use the IF for differente data type (Text and numbers)&lt;BR /&gt;&lt;BR /&gt;E.g. IF (Table1[Column1} = "A" &amp;amp;&amp;amp; Table1[Coluumn2} = "Brazil", Table1[CostAdjusted, Table1[Cost])&lt;BR /&gt;&lt;BR /&gt;Can you help me?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 22:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Column-with-two-conditions-text-columns-and-IF/m-p/1546915#M30574</guid>
      <dc:creator>caio_queiroz</dc:creator>
      <dc:date>2020-12-12T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Column with two conditions (text columns) and IF result is a Column, else other colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Column-with-two-conditions-text-columns-and-IF/m-p/1547103#M30596</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="195521" data-lia-user-login="caio_queiroz" class="lia-mention lia-mention-user"&gt;caio_queiroz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please if your column1 and column2 are having text data and have the data type as text.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Column = 
IF (
    AND( Table1[Column1] = "A" , Table1[Column2] = "Brazil"), 
    Table1[CostAdjusted],
    Table1[Cost]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can share your screenshot fo the table where ou are trying to add the column with the error message&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please click &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help other members find it useful&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.excelfort.com" target="_blank"&gt;&lt;FONT color="blue"&gt;Website&lt;/FONT&gt;&lt;/A&gt; &lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 10:28:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Column-with-two-conditions-text-columns-and-IF/m-p/1547103#M30596</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-12-13T10:28:41Z</dc:date>
    </item>
  </channel>
</rss>

