<?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 Create calculated column using alphabetical range in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-calculated-column-using-alphabetical-range/m-p/2495557#M35917</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create calculated column in Power BI report.&lt;/P&gt;&lt;P&gt;When,&lt;/P&gt;&lt;P&gt;If State column = " NSW" &amp;amp; First Char of Customer name column = (Present between)"A to F" Then assign name of executive as John,&lt;/P&gt;&lt;P&gt;If&amp;nbsp;State column = " NSW" &amp;amp; First Char of Customer name column= (Present between)"G to K" Then assign name of executive as Kevin,&lt;BR /&gt;If&amp;nbsp;State column = " QLD" &amp;amp; First Char of Customer name column= (Present between)"A to F" Then assign name of executive as Reith,&lt;/P&gt;&lt;P&gt;else "other"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help with the same.&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 08:47:54 GMT</pubDate>
    <dc:creator>liberty20</dc:creator>
    <dc:date>2022-05-05T08:47:54Z</dc:date>
    <item>
      <title>Create calculated column using alphabetical range</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-calculated-column-using-alphabetical-range/m-p/2495557#M35917</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to create calculated column in Power BI report.&lt;/P&gt;&lt;P&gt;When,&lt;/P&gt;&lt;P&gt;If State column = " NSW" &amp;amp; First Char of Customer name column = (Present between)"A to F" Then assign name of executive as John,&lt;/P&gt;&lt;P&gt;If&amp;nbsp;State column = " NSW" &amp;amp; First Char of Customer name column= (Present between)"G to K" Then assign name of executive as Kevin,&lt;BR /&gt;If&amp;nbsp;State column = " QLD" &amp;amp; First Char of Customer name column= (Present between)"A to F" Then assign name of executive as Reith,&lt;/P&gt;&lt;P&gt;else "other"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help with the same.&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 08:47:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-calculated-column-using-alphabetical-range/m-p/2495557#M35917</guid>
      <dc:creator>liberty20</dc:creator>
      <dc:date>2022-05-05T08:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create calculated column using alphabetical range</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-calculated-column-using-alphabetical-range/m-p/2500692#M35962</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/369913"&gt;@liberty20&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can try to use the Unicode function to achieve your requirement:&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;formula =
VAR ATF =
    GENERATESERIES ( UNICODE ( "A" ), UNICODE ( "F" ), 1 )
VAR GTK =
    GENERATESERIES ( UNICODE ( "G" ), UNICODE ( "K" ), 1 )
RETURN
    SWITCH (
        Table[State],
        "NSW",
            IF (
                UNICODE ( LEFT ( Table[Customer name], 1 ) ) IN ATF,
                "John",
                IF ( UNICODE ( LEFT ( Table[Customer name], 1 ) ) IN GTK, "Kevin", "Other" )
            ),
        "QLD", IF ( UNICODE ( LEFT ( Table[Customer name], 1 ) ) IN ATF, "Reith", "Other" ),
        "Other"
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/unicode-function-dax" target="_blank"&gt;UNICODE function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 03:18:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-calculated-column-using-alphabetical-range/m-p/2500692#M35962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-09T03:18:56Z</dc:date>
    </item>
  </channel>
</rss>

