<?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: DAX command &amp;quot;if&amp;quot; statement not finding column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-quot-if-quot-statement-not-finding-column/m-p/2996056#M100967</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493051" data-lia-user-login="John21Morales" class="lia-mention lia-mention-user"&gt;John21Morales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are creating a measure. You can use the same formula to create a calculated column. Otherwise, you need to wrap the column with SELECTEDVALUE:&lt;/P&gt;
&lt;P&gt;IF (&amp;nbsp;&lt;SPAN&gt;SELECTEDVALUE ( 'Table'[Column] ) = "ABC", 1, 0 )&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jan 2023 20:18:53 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-01-01T20:18:53Z</dc:date>
    <item>
      <title>DAX command "if" statement not finding column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-quot-if-quot-statement-not-finding-column/m-p/2996053#M100966</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;New to Power BI, I couldn't find out how to put the column "Churn Label" into the IF Command, so I went to the solutions (Of the exercise I was doing for DataCamp) to find out. It turns out, I knew how to do it but the way I was typing it in was not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, I tried to type it in as "Churneb" in the solutions file, and the same exact DAX command did not work. Is there something I am missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 20:01:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-quot-if-quot-statement-not-finding-column/m-p/2996053#M100966</guid>
      <dc:creator>John21Morales</dc:creator>
      <dc:date>2023-01-01T20:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX command "if" statement not finding column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-quot-if-quot-statement-not-finding-column/m-p/2996056#M100967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="493051" data-lia-user-login="John21Morales" class="lia-mention lia-mention-user"&gt;John21Morales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are creating a measure. You can use the same formula to create a calculated column. Otherwise, you need to wrap the column with SELECTEDVALUE:&lt;/P&gt;
&lt;P&gt;IF (&amp;nbsp;&lt;SPAN&gt;SELECTEDVALUE ( 'Table'[Column] ) = "ABC", 1, 0 )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 20:18:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-command-quot-if-quot-statement-not-finding-column/m-p/2996056#M100967</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-01-01T20:18:53Z</dc:date>
    </item>
  </channel>
</rss>

