<?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 undefined in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3761521#M123771</link>
    <description>&lt;P&gt;Im trying to creat a simple function via the custom Column function in Power BI,&lt;/P&gt;&lt;P&gt;I have a column with numbers in and I'm basically wanting to say any numbers beginning with 1336 or 1701 return the value as "online" and for everything else return the value "offline",&amp;nbsp; I can get the function to return the "online" but i am only returning errors where it should be "offline", any ideas&lt;/P&gt;&lt;P&gt;this is my function:-&lt;/P&gt;&lt;P&gt;=if Text.Start([DK Number],4)="1336" or "1701" then "online" else "offline")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 18:53:47 GMT</pubDate>
    <dc:creator>Darren75</dc:creator>
    <dc:date>2024-03-13T18:53:47Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3761521#M123771</link>
      <description>&lt;P&gt;Im trying to creat a simple function via the custom Column function in Power BI,&lt;/P&gt;&lt;P&gt;I have a column with numbers in and I'm basically wanting to say any numbers beginning with 1336 or 1701 return the value as "online" and for everything else return the value "offline",&amp;nbsp; I can get the function to return the "online" but i am only returning errors where it should be "offline", any ideas&lt;/P&gt;&lt;P&gt;this is my function:-&lt;/P&gt;&lt;P&gt;=if Text.Start([DK Number],4)="1336" or "1701" then "online" else "offline")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 18:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3761521#M123771</guid>
      <dc:creator>Darren75</dc:creator>
      <dc:date>2024-03-13T18:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3761616#M123781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="705242" data-lia-user-login="Darren75" class="lia-mention lia-mention-user"&gt;Darren75&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try this instead:&lt;BR /&gt;&lt;EM&gt;let n =Text.Start([DK Number],4) in if (n="1336" or n= 1701") then "online" else "offline"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this is helpful&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 20:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3761616#M123781</guid>
      <dc:creator>m_dekorte</dc:creator>
      <dc:date>2024-03-13T20:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3769413#M124047</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="705242" data-lia-user-login="Darren75" class="lia-mention lia-mention-user"&gt;Darren75&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;v1&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if Text.Start([DK Number],4)="1336" or Text.Start([DK Number],4)="1701" then "online" else "offline"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;v2&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if List.Contains({"1336", "1701"}, Text.Start([DK Number], 4)) then "online" else "offline"&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 17 Mar 2024 14:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/undefined/m-p/3769413#M124047</guid>
      <dc:creator>dufoq3</dc:creator>
      <dc:date>2024-03-17T14:32:45Z</dc:date>
    </item>
  </channel>
</rss>

