<?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: Custom Column - Multiple If Statement in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939727#M450220</link>
    <description>&lt;P&gt;Actually just managed to resolve this, below for anyone else searching for this in the future;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if [DESIGN ENGINEER] = "PG" then "PAUL Gxxxxx" else if [DESIGN ENGINEER] = "AB" then "ASHLEY Bxxxxx" else if [DESIGN ENGINEER] = "SG" then "SAM Gxxxxx" else if [DESIGN ENGINEER] = "TB" then "TOM Bxxxx" else if [DESIGN ENGINEER] = "NBJ" then "NATHAN Bxxxx" else if [DESIGN ENGINEER] = "LB" then "LLOYD Bxxxx" else if [DESIGN ENGINEER] = "DW" then "DAVE Wxxxx" else if [DESIGN ENGINEER] = "AMV" then "ADAM Vxxxx" else if [DESIGN ENGINEER] = "DB" then "DAVID Bxxxx" else ""&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 19 Feb 2020 21:59:29 GMT</pubDate>
    <dc:creator>Adam1V</dc:creator>
    <dc:date>2020-02-19T21:59:29Z</dc:date>
    <item>
      <title>Custom Column - Multiple If Statement</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939723#M450216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im extremly new to Power Bi so hoping this isnt a silly question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking to expand on employees initials within power bi and im trying to use a custom column to do so with the below formula, however im getting an 'Expression Error - The Name 'If' wasnt recogised". Can anyone advise where I may be going wrong?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF([DESIGN ENGINEER]="PG","PAUL Gxxxx",IF([DESIGN ENGINEER]="AB","ASHLEY Bxxxx",IF([DESIGN ENGINEER]="SG","SAM Gxxxx",IF([DESIGN ENGINEER]="TB","TOM Bxxxx",IF([DESIGN ENGINEER]="NBJ","NATHAN Bxxxx",IF([DESIGN ENGINEER]="LB","LLOYD Bxxxx",IF([DESIGN ENGINEER]="DW","DAVE Wxxxx",IF([DESIGN ENGINEER]="AMV","ADAM Vxxxx",IF([DESIGN ENGINEER]="DB","DAVID Bxxxx","")))))))))&lt;/LI-CODE&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, 19 Feb 2020 21:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939723#M450216</guid>
      <dc:creator>Adam1V</dc:creator>
      <dc:date>2020-02-19T21:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Column - Multiple If Statement</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939727#M450220</link>
      <description>&lt;P&gt;Actually just managed to resolve this, below for anyone else searching for this in the future;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if [DESIGN ENGINEER] = "PG" then "PAUL Gxxxxx" else if [DESIGN ENGINEER] = "AB" then "ASHLEY Bxxxxx" else if [DESIGN ENGINEER] = "SG" then "SAM Gxxxxx" else if [DESIGN ENGINEER] = "TB" then "TOM Bxxxx" else if [DESIGN ENGINEER] = "NBJ" then "NATHAN Bxxxx" else if [DESIGN ENGINEER] = "LB" then "LLOYD Bxxxx" else if [DESIGN ENGINEER] = "DW" then "DAVE Wxxxx" else if [DESIGN ENGINEER] = "AMV" then "ADAM Vxxxx" else if [DESIGN ENGINEER] = "DB" then "DAVID Bxxxx" else ""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939727#M450220</guid>
      <dc:creator>Adam1V</dc:creator>
      <dc:date>2020-02-19T21:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Column - Multiple If Statement</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939728#M450221</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="208835" data-lia-user-login="Adam1V" class="lia-mention lia-mention-user"&gt;Adam1V&lt;/a&gt;&amp;nbsp; i am guessing that you are doing it in M. The correct syntax would be &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [DESIGN ENGINEER]="PG" then "A" else if [DESIGN ENGINEER]="AB" then "B" else if[DESIGN ENGINEER]="SG" then "C" else -800&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939728#M450221</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2020-02-19T21:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Column - Multiple If Statement</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939730#M450223</link>
      <description>&lt;P&gt;Is this in the query editor? It looks like DAX syntax but that error sounds like the query editor, which uses a different language. If statements there have a completely different syntax.&amp;nbsp; In the query editor an if statement looks like this (case sensitive)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if [DESIGN ENGINEER]="PG" then "PAUL Gxxxx"
	else if [DESIGN ENGINEER]="AB" then "ASHLEY Bxxxx"
	else if [DESIGN ENGINEER]="SG" then "SAM Gxxxx"
	...
	else ""&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 22:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Custom-Column-Multiple-If-Statement/m-p/939730#M450223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T22:04:27Z</dc:date>
    </item>
  </channel>
</rss>

