<?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 DAX IF/THEN Statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1004900#M12784</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a very simple measure to look at a field and simply create an IF "this" then "This" to basically relate what it currently a number to a Customer Name.&amp;nbsp; The field I am trying to use has the following symbol next to it, which seems to be stopping me using the the example formula below... I cannot find my fields this way.&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;PRE&gt;Measure = SWITCH(TRUE();
[NumberOfUsers] &amp;lt; 250; "SME";
[NumberOfUsers] &amp;lt; 1000 ; "Corporate";
[NumberOfUsers] &amp;lt; 5000 ; "Enterprise";
[NumberOfUsers] &amp;gt;= 5000 ; "Global";
BLANK())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing the point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 13:46:00 GMT</pubDate>
    <dc:creator>Black3y</dc:creator>
    <dc:date>2020-04-02T13:46:00Z</dc:date>
    <item>
      <title>DAX IF/THEN Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1004900#M12784</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do a very simple measure to look at a field and simply create an IF "this" then "This" to basically relate what it currently a number to a Customer Name.&amp;nbsp; The field I am trying to use has the following symbol next to it, which seems to be stopping me using the the example formula below... I cannot find my fields this way.&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;PRE&gt;Measure = SWITCH(TRUE();
[NumberOfUsers] &amp;lt; 250; "SME";
[NumberOfUsers] &amp;lt; 1000 ; "Corporate";
[NumberOfUsers] &amp;lt; 5000 ; "Enterprise";
[NumberOfUsers] &amp;gt;= 5000 ; "Global";
BLANK())&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing the point?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 13:46:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1004900#M12784</guid>
      <dc:creator>Black3y</dc:creator>
      <dc:date>2020-04-02T13:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX IF/THEN Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005013#M12785</link>
      <description>&lt;P&gt;First,&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, that is the symbol for a measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Third, guessing that [NumberOfUsers] is a column, you will need to use aggregation like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SWITCH(TRUE();
SUM([NumberOfUsers]) &amp;lt; 250; "SME";
SUM([NumberOfUsers]) &amp;lt; 1000 ; "Corporate";
SUM([NumberOfUsers]) &amp;lt; 5000 ; "Enterprise";
SUM([NumberOfUsers]) &amp;gt;= 5000 ; "Global";
BLANK())&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Apr 2020 14:35:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005013#M12785</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-02T14:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX IF/THEN Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005120#M12790</link>
      <description>&lt;P&gt;Apologies - I should have read that post first. I will have a read shortly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the attached error below when trying to use your formula, which I know is becuase I didn't explain myself properly but I am unable to share the actual data and so used another example, but forgot to clarify the data type...&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;This is the sort of thing I am trying to do, with the correct table name etc&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Enrollment = SWITCH(TRUE(),SUM([Enrollment Number]) = "60077216","TEXT","87809449","TEXT2",BLANK())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:10:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005120#M12790</guid>
      <dc:creator>Black3y</dc:creator>
      <dc:date>2020-04-02T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX IF/THEN Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005576#M12803</link>
      <description>&lt;P&gt;I also appear to have copied the wrong symbol, which seems to be the reason i can't do a simple "IF" command on that field... See below what I meant to show you.&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;I am simply trying to create a measure that will look at the field "Enrollment Number" and search for certian strings, when it finds one then return a new Value. So for example if it finds "1098333" I want to return "BOB" into the new measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mamy thanks for your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 20:26:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-IF-THEN-Statement/m-p/1005576#M12803</guid>
      <dc:creator>Black3y</dc:creator>
      <dc:date>2020-04-02T20:26:00Z</dc:date>
    </item>
  </channel>
</rss>

