<?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 Calculation of sale same period last year when no sale in selected period. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-sale-same-period-last-year-when-no-sale-in/m-p/3262230#M120694</link>
    <description>&lt;P&gt;I have the following simple model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to be able to create a measure that calculates lost sales to customers in a given period, where lost sales are defined as:&lt;/P&gt;&lt;P&gt;Situation where a customer has no positive sales in the selected period, and where sales in the same period last year are positive.&lt;/P&gt;&lt;P&gt;I would like to be able to insert the measure with the DAX calculation into the matrix and display a lost sale per customer and total for the customers shown.&lt;/P&gt;&lt;P&gt;In the example shown, a lost sale of 100 for customer Cust.6 and Cust.8 and a total of 200 should be shown.&lt;/P&gt;&lt;P&gt;I have now been trying to make a calculation for a long time, and I therefore now want to ask if there is a quick expert here who can help me.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 15:06:16 GMT</pubDate>
    <dc:creator>Lars_Denmark</dc:creator>
    <dc:date>2023-05-31T15:06:16Z</dc:date>
    <item>
      <title>Calculation of sale same period last year when no sale in selected period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-sale-same-period-last-year-when-no-sale-in/m-p/3262230#M120694</link>
      <description>&lt;P&gt;I have the following simple model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to be able to create a measure that calculates lost sales to customers in a given period, where lost sales are defined as:&lt;/P&gt;&lt;P&gt;Situation where a customer has no positive sales in the selected period, and where sales in the same period last year are positive.&lt;/P&gt;&lt;P&gt;I would like to be able to insert the measure with the DAX calculation into the matrix and display a lost sale per customer and total for the customers shown.&lt;/P&gt;&lt;P&gt;In the example shown, a lost sale of 100 for customer Cust.6 and Cust.8 and a total of 200 should be shown.&lt;/P&gt;&lt;P&gt;I have now been trying to make a calculation for a long time, and I therefore now want to ask if there is a quick expert here who can help me.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:06:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-sale-same-period-last-year-when-no-sale-in/m-p/3262230#M120694</guid>
      <dc:creator>Lars_Denmark</dc:creator>
      <dc:date>2023-05-31T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of sale same period last year when no sale in selected period.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-sale-same-period-last-year-when-no-sale-in/m-p/3265348#M120866</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="258112" data-lia-user-login="Lars_Denmark" class="lia-mention lia-mention-user"&gt;Lars_Denmark&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-sale-same-period-last-year-when-no-sale-in/m-p/3265348#M120866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-02T09:22:59Z</dc:date>
    </item>
  </channel>
</rss>

