<?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 It seems like PowerBI simply don't want to work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/It-seems-like-PowerBI-simply-don-t-want-to-work/m-p/3309613#M157438</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been having a problem that I can't solve (and yes, I've already asked Chat GTP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this DAX formula:&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;Ventas con Otros =&lt;/P&gt;&lt;P&gt;VAR PorcSales = [TotalSales] * 0.01&lt;/P&gt;&lt;P&gt;//I create a summarize the table with customers and the their total sales&lt;BR /&gt;VAR SumTable =&lt;BR /&gt;SUMMARIZE(SALES, 'MY TABLE'[NAME], "CustomerSales", [TotalSales]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;//Then I use a filter to select only those customers whose purchases is below the 1% of Total Sales.&lt;BR /&gt;VAR FilterSumTable =&lt;BR /&gt;FILTER(SumTable , [CustomerSales] &amp;lt; PorcSales )&lt;/P&gt;&lt;P&gt;VAR TotalOthers=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[TotalSales],&lt;BR /&gt;FilterSumTable&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR SelectOthers = SELECTEDVALUE('MY TABLE'[NAME]) = "Others"&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;IF(SelectOthers,TotalOthers,[TotalSales])&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;P&gt;What I want to achieve is to make a pie graf that shows every single customer whose purchases represent more than 1% of the total sales, the rest I want to group them under the name "others" and assign them the remaining value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to do a table with that information, I get this:&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;As you may see, there is no "Other" row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How ever,&amp;nbsp;if i replace the variable with any value then yes it works.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;DIV&gt;IF(SelectOthers,1000000,[TotalVentas])&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Power BI "decide" to work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody can help me, I really appreciate it&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Jun 2023 07:20:09 GMT</pubDate>
    <dc:creator>SebastianY</dc:creator>
    <dc:date>2023-06-30T07:20:09Z</dc:date>
    <item>
      <title>It seems like PowerBI simply don't want to work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/It-seems-like-PowerBI-simply-don-t-want-to-work/m-p/3309613#M157438</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been having a problem that I can't solve (and yes, I've already asked Chat GTP).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this DAX formula:&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;Ventas con Otros =&lt;/P&gt;&lt;P&gt;VAR PorcSales = [TotalSales] * 0.01&lt;/P&gt;&lt;P&gt;//I create a summarize the table with customers and the their total sales&lt;BR /&gt;VAR SumTable =&lt;BR /&gt;SUMMARIZE(SALES, 'MY TABLE'[NAME], "CustomerSales", [TotalSales]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;//Then I use a filter to select only those customers whose purchases is below the 1% of Total Sales.&lt;BR /&gt;VAR FilterSumTable =&lt;BR /&gt;FILTER(SumTable , [CustomerSales] &amp;lt; PorcSales )&lt;/P&gt;&lt;P&gt;VAR TotalOthers=&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[TotalSales],&lt;BR /&gt;FilterSumTable&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR SelectOthers = SELECTEDVALUE('MY TABLE'[NAME]) = "Others"&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;IF(SelectOthers,TotalOthers,[TotalSales])&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;P&gt;What I want to achieve is to make a pie graf that shows every single customer whose purchases represent more than 1% of the total sales, the rest I want to group them under the name "others" and assign them the remaining value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to do a table with that information, I get this:&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;As you may see, there is no "Other" row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How ever,&amp;nbsp;if i replace the variable with any value then yes it works.&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;DIV&gt;IF(SelectOthers,1000000,[TotalVentas])&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then Power BI "decide" to work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody can help me, I really appreciate it&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jun 2023 07:20:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/It-seems-like-PowerBI-simply-don-t-want-to-work/m-p/3309613#M157438</guid>
      <dc:creator>SebastianY</dc:creator>
      <dc:date>2023-06-30T07:20:09Z</dc:date>
    </item>
  </channel>
</rss>

