<?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: New column based on another two columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585647#M74347</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398723" data-lia-user-login="ROG" class="lia-mention lia-mention-user"&gt;ROG&lt;/a&gt;&amp;nbsp;It would appear that one or both of the columns/measures that you have highlighted are returning numbers and not text. So, you need to address those comparisons. Are they really returning "Yes" and "No"? Doesn't seem like it.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 12:46:23 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-06-17T12:46:23Z</dc:date>
    <item>
      <title>New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583468#M74215</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a new column based on the two columns below highlighted in pink.&amp;nbsp;&lt;BR /&gt;The new column should say &lt;STRONG&gt;Yes&lt;/STRONG&gt; if these two columns have "Yes" and &lt;STRONG&gt;No&lt;/STRONG&gt; if one of them is "No".&lt;BR /&gt;I tried the the dax below, but it won' work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;RG&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583468#M74215</guid>
      <dc:creator>ROG</dc:creator>
      <dc:date>2022-06-16T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583497#M74216</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398723" data-lia-user-login="ROG" class="lia-mention lia-mention-user"&gt;ROG&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;P&gt;RETURN IF(Flag8Wk_CNSize = 1 &amp;amp;&amp;amp; _8WkSigTest = 1, "Yes", "No")&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:02:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583497#M74216</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-06-16T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583499#M74217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398723" data-lia-user-login="ROG" class="lia-mention lia-mention-user"&gt;ROG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after RETURN change the &amp;amp;&amp;amp; to + and change the 1 to 2&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 15:03:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2583499#M74217</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-16T15:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2584926#M74303</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It's not working because o the data type.&amp;nbsp;&lt;BR /&gt;The two measures I used to create the new column a type= text, but the new one I changed from number to general. There isn't an option to change to text for this measure. What woul you do in this case?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:04:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2584926#M74303</guid>
      <dc:creator>ROG</dc:creator>
      <dc:date>2022-06-17T08:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585647#M74347</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398723" data-lia-user-login="ROG" class="lia-mention lia-mention-user"&gt;ROG&lt;/a&gt;&amp;nbsp;It would appear that one or both of the columns/measures that you have highlighted are returning numbers and not text. So, you need to address those comparisons. Are they really returning "Yes" and "No"? Doesn't seem like it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 12:46:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585647#M74347</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-06-17T12:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585663#M74349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The issue is that&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="398723" data-lia-user-login="ROG" class="lia-mention lia-mention-user"&gt;ROG&lt;/a&gt;&amp;nbsp;is trying to compare a measure of type percentage ( [8 WK Diff %] ) with a text ("Yes"). Better if he advises what is he trying to achieve.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 12:55:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585663#M74349</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-17T12:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on another two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585758#M74360</link>
      <description>&lt;P&gt;Thanks a million&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I was indeed using a wrong measure. The below worked.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;8WK CN Size_SigTest = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;_8WkSigTest&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;S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&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Jun 2022 13:34:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-another-two-columns/m-p/2585758#M74360</guid>
      <dc:creator>ROG</dc:creator>
      <dc:date>2022-06-17T13:34:32Z</dc:date>
    </item>
  </channel>
</rss>

