<?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: If value is greater than X return X if value is less than X return X in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691659#M143457</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This worked.. although I am not sure its the best way to do it haha. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Stores Impacted =&lt;/SPAN&gt; &lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"1000+ Stores"&lt;/SPAN&gt;&lt;SPAN&gt;, 'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"1-999 Stores"&lt;/SPAN&gt;&lt;SPAN&gt;,'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"0 Stores"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:12:10 GMT</pubDate>
    <dc:creator>AmberJane</dc:creator>
    <dc:date>2024-02-09T18:12:10Z</dc:date>
    <item>
      <title>If value is greater than X return X if value is less than X return X</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691149#M143428</link>
      <description>&lt;P&gt;Good Morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column that comes over with location numbers. I need to find a way to transform this column to show if the value is greater than 1000 return "1000+ Stores" if value is less than 1000 return "1-999 Stores"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 14:23:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691149#M143428</guid>
      <dc:creator>AmberJane</dc:creator>
      <dc:date>2024-02-09T14:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: If value is greater than X return X if value is less than X return X</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691583#M143448</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353227" data-lia-user-login="AmberJane" class="lia-mention lia-mention-user"&gt;AmberJane&lt;/a&gt;&amp;nbsp;, You can achieve it using Switch function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store Classification =&lt;BR /&gt;SWITCH (&lt;BR /&gt;TRUE (),&lt;BR /&gt;'YourTableName'[Location Number] &amp;gt; 1000, "1000+ Stores",&lt;BR /&gt;'YourTableName'[Location Number] &amp;lt;= 1000, "1-999 Stores"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept as solution and give kudos if it helps&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 17:27:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691583#M143448</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-02-09T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: If value is greater than X return X if value is less than X return X</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691615#M143451</link>
      <description>&lt;P&gt;Very cool that did work but I missed something. If stores are 0 I need a third option of 0 locations impacted. How would I add that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So need:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1000+ Stores&amp;nbsp;&lt;/P&gt;&lt;P&gt;1-999 Stores&amp;nbsp;&lt;/P&gt;&lt;P&gt;0 Stores&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 17:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691615#M143451</guid>
      <dc:creator>AmberJane</dc:creator>
      <dc:date>2024-02-09T17:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: If value is greater than X return X if value is less than X return X</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691659#M143457</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This worked.. although I am not sure its the best way to do it haha. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Stores Impacted =&lt;/SPAN&gt; &lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"1000+ Stores"&lt;/SPAN&gt;&lt;SPAN&gt;, 'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"1-999 Stores"&lt;/SPAN&gt;&lt;SPAN&gt;,'YourTableName'[Location Number]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"0 Stores"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:12:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-is-greater-than-X-return-X-if-value-is-less-than-X/m-p/3691659#M143457</guid>
      <dc:creator>AmberJane</dc:creator>
      <dc:date>2024-02-09T18:12:10Z</dc:date>
    </item>
  </channel>
</rss>

