<?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: Sales target does not appear in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250672#M119931</link>
    <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/s/bbzbut06qx6ah03/TESTE%20analise%20comercial%20DM.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/bbzbut06qx6ah03/TESTE%20analise%20comercial%20DM.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the current month ( maio) sales code 21 as no sales and the Obj. € not appear&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 09:15:13 GMT</pubDate>
    <dc:creator>MrMilk</dc:creator>
    <dc:date>2023-05-24T09:15:13Z</dc:date>
    <item>
      <title>Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3248565#M119789</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;i have a sales fact table with salesman code and a sales target table with data, salesman code and value. In pbi if in a month the salesman had nothing in sales the sales target does not appear. How to solve?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;p.s sorry for my english &lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 21:27:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3248565#M119789</guid>
      <dc:creator>MrMilk</dc:creator>
      <dc:date>2023-05-22T21:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3248985#M119815</link>
      <description>&lt;P&gt;Right click on your salesman dimension, and then select "Show items with no data"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3248985#M119815</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-05-23T05:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250498#M119917</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks but i have a table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and whith no sales ( i use the rule if is blank to put 0)&amp;nbsp; the Obj € ( sales target ) does not appear;&lt;/P&gt;&lt;P&gt;even the filter does not show the salesman code "21":&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250498#M119917</guid>
      <dc:creator>MrMilk</dc:creator>
      <dc:date>2023-05-24T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250549#M119921</link>
      <description>&lt;LI-CODE lang="markup"&gt;Well, you can use the functions in DAX to implement this requirement. First, you need to create a calculation column that determines whether each salesperson made a sale in each month. Here's a sample code:

HasSales = IF(CALCULATE(SUM(SalesFactTable[Sales]), ALLEXCEPT(SalesFactTable, SalesFactTable[Salesman Code],  Dates[Month])) &amp;gt; 0, 1, 0)

This column sums up each salesperson and month and determines if there was a sale. Returns 1 if there is a sale, 0 otherwise.

Next, you can use the SUMX function to calculate the sales goals for each salesperson. Here's a sample code:

SalesTarget = SUMX(FILTER(SalesTargetTable,  SalesTargetTable[Salesman Code] = SalesFactTable[Salesman Code] &amp;amp;&amp;amp; SalesTargetTable[Month] = Dates[Month] &amp;amp;&amp;amp;  SalesTargetTable[HasSales] = 1), SalesTargetTable[Value])

The formula picks out the sales targets that each salesperson has sold in each month and sums them up.

Finally, you can add this calculation column to your report to show the sales goals for each salesperson. Hope this helps you resolve the problem.&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 May 2023 08:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250549#M119921</guid>
      <dc:creator>Mrxiang</dc:creator>
      <dc:date>2023-05-24T08:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250637#M119928</link>
      <description>&lt;P&gt;the formula should be&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HasSales = IF(&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(SalesFactTable[Sales]),&lt;BR /&gt;ALLEXCEPT(SalesFactTable, SalesFactTable[Salesman Code], Dates[Month])&lt;BR /&gt;) &amp;gt; 0,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;but if i dont have sales the sales code does not even appear&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250637#M119928</guid>
      <dc:creator>MrMilk</dc:creator>
      <dc:date>2023-05-24T09:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250656#M119930</link>
      <description>&lt;P&gt;Can you provide the PBIX file?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:08:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250656#M119930</guid>
      <dc:creator>Mrxiang</dc:creator>
      <dc:date>2023-05-24T09:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sales target does not appear</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250672#M119931</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/s/bbzbut06qx6ah03/TESTE%20analise%20comercial%20DM.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/bbzbut06qx6ah03/TESTE%20analise%20comercial%20DM.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the current month ( maio) sales code 21 as no sales and the Obj. € not appear&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 09:15:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-target-does-not-appear/m-p/3250672#M119931</guid>
      <dc:creator>MrMilk</dc:creator>
      <dc:date>2023-05-24T09:15:13Z</dc:date>
    </item>
  </channel>
</rss>

