<?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 Multiple IF followed by NOT (syntax error?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014371#M158154</link>
    <description>&lt;P&gt;Hey team,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Recieved a lot of really useful information from this community already! Thank you!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm essentially converting GUID's from Salesforce back to staff names for a visual:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Staff = 
 IF('DataTable'[Staff GUID]="005Mn1234567", "Joe Bloggs",
 //the above converts the GUID to "Joe Bloggs"
 IF('DataTable'[Staff GUID]="005Mn1234568", "Jane Doe",
 //the above converts the GUID to "Jane Doe"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The issue I'm having - is currently I only know a portion of the GUID's, and I'm hoping for those I don't, in the calculated table it will just show the GUID. In my mind it went something like:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NOT('DataTable'[Staff GUID]=("005Mn1234567", 005Mn1234568"), 'DataTable'[Staff GUID])&lt;/LI-CODE&gt;&lt;P&gt;ie- if the GUID isn't specified as a staff name, just display the GUID.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However getting all sorts of sytax errors and #error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Anyone have any direction or advice on this one? I'm extremely green with DAX.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 01:12:34 GMT</pubDate>
    <dc:creator>smoothbrain</dc:creator>
    <dc:date>2024-06-28T01:12:34Z</dc:date>
    <item>
      <title>Multiple IF followed by NOT (syntax error?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014371#M158154</link>
      <description>&lt;P&gt;Hey team,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Recieved a lot of really useful information from this community already! Thank you!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm essentially converting GUID's from Salesforce back to staff names for a visual:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Staff = 
 IF('DataTable'[Staff GUID]="005Mn1234567", "Joe Bloggs",
 //the above converts the GUID to "Joe Bloggs"
 IF('DataTable'[Staff GUID]="005Mn1234568", "Jane Doe",
 //the above converts the GUID to "Jane Doe"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;The issue I'm having - is currently I only know a portion of the GUID's, and I'm hoping for those I don't, in the calculated table it will just show the GUID. In my mind it went something like:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NOT('DataTable'[Staff GUID]=("005Mn1234567", 005Mn1234568"), 'DataTable'[Staff GUID])&lt;/LI-CODE&gt;&lt;P&gt;ie- if the GUID isn't specified as a staff name, just display the GUID.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However getting all sorts of sytax errors and #error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Anyone have any direction or advice on this one? I'm extremely green with DAX.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 01:12:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014371#M158154</guid>
      <dc:creator>smoothbrain</dc:creator>
      <dc:date>2024-06-28T01:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF followed by NOT (syntax error?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014466#M158163</link>
      <description>&lt;P&gt;Hey Smoothbrain,&lt;BR /&gt;&lt;BR /&gt;If you want to check if a value is in a list of values, you'd use the following syntax:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'DataTable'[Staff GUID] IN { "005Mn1234567", 005Mn1234568" }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are creating a calculated column, the following pattern might be easier to maintain.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Column = 
SWITCH (
    'DataTable'[Staff GUID],
    "005Mn1234567", "Joe Bloggs",
    "005Mn1234568", "Jane Doe",
    'DataTable'[Staff GUID]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Jun 2024 01:56:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014466#M158163</guid>
      <dc:creator>justinmartin</dc:creator>
      <dc:date>2024-06-28T01:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF followed by NOT (syntax error?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014503#M158167</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="589192" data-lia-user-login="justinmartin" class="lia-mention lia-mention-user"&gt;justinmartin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for helping out!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have been creating a calculated colum, so I'll try this format! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 02:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014503#M158167</guid>
      <dc:creator>smoothbrain</dc:creator>
      <dc:date>2024-06-28T02:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF followed by NOT (syntax error?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014529#M158168</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="589192" data-lia-user-login="justinmartin" class="lia-mention lia-mention-user"&gt;justinmartin&lt;/a&gt;&amp;nbsp;that's done the trick! Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 02:31:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-followed-by-NOT-syntax-error/m-p/4014529#M158168</guid>
      <dc:creator>smoothbrain</dc:creator>
      <dc:date>2024-06-28T02:31:48Z</dc:date>
    </item>
  </channel>
</rss>

