<?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 Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024356#M103051</link>
    <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490866" data-lia-user-login="FABIANSMITS" class="lia-mention lia-mention-user"&gt;FABIANSMITS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how is [actual month] defined?&lt;/P&gt;&lt;P&gt;what issue do you have for the mentioned code?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 00:14:53 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-01-17T00:14:53Z</dc:date>
    <item>
      <title>Sales Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024137#M103039</link>
      <description>&lt;P&gt;Greetings PBI Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate the sales according to what is selected in the calendar, for example, if I have selected the year, the sales are calculated based on that selection, and the same for month and day. Here is an example of the measure I have to calculate the sales in the actual month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please give me some help on this? thank you so much&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;</description>
      <pubDate>Mon, 16 Jan 2023 21:06:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024137#M103039</guid>
      <dc:creator>FABIANSMITS</dc:creator>
      <dc:date>2023-01-16T21:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024356#M103051</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490866" data-lia-user-login="FABIANSMITS" class="lia-mention lia-mention-user"&gt;FABIANSMITS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how is [actual month] defined?&lt;/P&gt;&lt;P&gt;what issue do you have for the mentioned code?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 00:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024356#M103051</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-17T00:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024518#M103065</link>
      <description>&lt;P&gt;Ashley the measure is Current Month and is calculated this way:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and the measure for LAST_DATE_SALES is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And what i want to do is to adjust my measure so that it can calculate the sales per year, month or day as selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 02:31:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024518#M103065</guid>
      <dc:creator>FABIANSMITS</dc:creator>
      <dc:date>2023-01-17T02:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024600#M103068</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490866" data-lia-user-login="FABIANSMITS" class="lia-mention lia-mention-user"&gt;FABIANSMITS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to add a slicer like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can achieve your goal by using sum of sales directly:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Or apply a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _a = SELECTCOLUMNS('Calendar',"Date",[Date])
return CALCULATE(SUM('Table'[Total Sales]),FILTER(ALL('Calendar'),[Date] in _a))&lt;/LI-CODE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 03:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sales-Measure/m-p/3024600#M103068</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-01-17T03:01:50Z</dc:date>
    </item>
  </channel>
</rss>

