<?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: copying &amp;quot;text&amp;quot; with if statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/copying-quot-text-quot-with-if-statement/m-p/1465599#M27717</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You make it difficult to answer your question. You don't specify the names of the columns plus the sample data provided is a screen cap, which can not be copied and thrown into PBI to make a test.&lt;/P&gt;
&lt;P&gt;This is a solution in DAX. I f you want it in Power Query please provide sample data in &lt;STRONG&gt;text-tabular format&lt;/STRONG&gt; so that it can be copied.&lt;/P&gt;
&lt;P&gt;Assuming the column with the 70X-XXX values is called Code and the column with the "Fout" and nulls is called Status, then create a new calculated column in your table (Table1):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New col =
VAR commonStatus_ =
    CALCULATE ( MAX ( Table1[Status] ), ALLEXCEPT ( Table1, Table1[Code] ) )
RETURN
    IF ( ISBLANK ( Table1[Status] ), commonStatus_, Table1[Status] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 09:57:15 GMT</pubDate>
    <dc:creator>AlB</dc:creator>
    <dc:date>2020-10-30T09:57:15Z</dc:date>
    <item>
      <title>copying "text" with if statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/copying-quot-text-quot-with-if-statement/m-p/1463723#M27661</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a FTR (First time right).&lt;/P&gt;&lt;P&gt;The table creates "Fout" (False) as the text condition isn't correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To put it simple I'm trying to create that the text "Fout" will be copied to all the same 70X-XXX values.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example in the picture:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- 704-434 -&amp;gt; "Loopactie opruimen" -&amp;gt; "Fout"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- 704-434 -&amp;gt; "Voorbereiden" -&amp;gt; "Fout" (currently returned as a null value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need:&lt;/P&gt;&lt;P&gt;- A method to copy the "Fout" text if the conditions are correct&lt;/P&gt;&lt;P&gt;(as one of the 70X-XXX values contains a "Fout" text in the other column.&amp;nbsp; The other 70X-XXX values with the same numbers should also have the "Fout"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SRMulti&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 14:54:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/copying-quot-text-quot-with-if-statement/m-p/1463723#M27661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: copying "text" with if statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/copying-quot-text-quot-with-if-statement/m-p/1465599#M27717</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You make it difficult to answer your question. You don't specify the names of the columns plus the sample data provided is a screen cap, which can not be copied and thrown into PBI to make a test.&lt;/P&gt;
&lt;P&gt;This is a solution in DAX. I f you want it in Power Query please provide sample data in &lt;STRONG&gt;text-tabular format&lt;/STRONG&gt; so that it can be copied.&lt;/P&gt;
&lt;P&gt;Assuming the column with the 70X-XXX values is called Code and the column with the "Fout" and nulls is called Status, then create a new calculated column in your table (Table1):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New col =
VAR commonStatus_ =
    CALCULATE ( MAX ( Table1[Status] ), ALLEXCEPT ( Table1, Table1[Code] ) )
RETURN
    IF ( ISBLANK ( Table1[Status] ), commonStatus_, Table1[Status] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/copying-quot-text-quot-with-if-statement/m-p/1465599#M27717</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-30T09:57:15Z</dc:date>
    </item>
  </channel>
</rss>

