<?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: FUNCTION IF DOES NOT WORK in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218306#M117549</link>
    <description>&lt;P&gt;You need to use allexcept(table,year) if you are filtering by year&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 16:13:10 GMT</pubDate>
    <dc:creator>eliasayyy</dc:creator>
    <dc:date>2023-05-03T16:13:10Z</dc:date>
    <item>
      <title>FUNCTION IF DOES NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218157#M117539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to use a function IF to change the name of the Cities to "Others" if they are not in my Top 15 based on highiest billing but my DAX isn't working.&lt;BR /&gt;I don't know if it is important but I also have a column "Year" that I use to filter in the visual.&lt;BR /&gt;&lt;BR /&gt;I created this measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TopNCities = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;BASE_RES_TABLEAU&lt;/SPAN&gt;&lt;SPAN&gt;[CITY]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;BASE_RES_TABLEAU&lt;/SPAN&gt;&lt;SPAN&gt;[Billing]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;And then I tried to create this column but is not working:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TopCity = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;([TopNCities] &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;15&lt;/SPAN&gt;&lt;SPAN&gt;, BASE_RES_TABLEAU[CITY], &lt;/SPAN&gt;&lt;SPAN&gt;"Others"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;What I'm doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 14:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218157#M117539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T14:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION IF DOES NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218306#M117549</link>
      <description>&lt;P&gt;You need to use allexcept(table,year) if you are filtering by year&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 16:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218306#M117549</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-03T16:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION IF DOES NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218431#M117558</link>
      <description>&lt;P&gt;&lt;SPAN&gt;where do I use allexcept(table,year)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218431#M117558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T17:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION IF DOES NOT WORK</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218446#M117559</link>
      <description>&lt;P&gt;In you rankx function instead of all&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 17:46:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/FUNCTION-IF-DOES-NOT-WORK/m-p/3218446#M117559</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-03T17:46:02Z</dc:date>
    </item>
  </channel>
</rss>

