<?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: Dax for calculating Sales volume for current/Last year for multi Timezone in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-Sales-volume-for-current-Last-year-for-multi/m-p/809849#M5151</link>
    <description>&lt;P&gt;Adding more information to this.&lt;/P&gt;&lt;P&gt;There is the Timezone filter in the report last 12 months should be calculated based on the timezone selected. we already getting timezone and localtime calculated from timezone in Sales table.&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;</description>
    <pubDate>Fri, 04 Oct 2019 09:36:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-04T09:36:09Z</dc:date>
    <item>
      <title>Dax for calculating Sales volume for current/Last year for multi Timezone</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-Sales-volume-for-current-Last-year-for-multi/m-p/808949#M5117</link>
      <description>&lt;P&gt;I have to implement multitimezone functoinality for the sales volume current last year in powerbi&lt;/P&gt;&lt;P&gt;using clustered bar chart for the below scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables one Date table and other Sales fact table with the below schema.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;CaledarDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CreationDateTime&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Amount&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TimeZone&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LocalTime&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Country&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have mapped CalendarDate with Sale table CreationDateTime. I have to add the clustered bar chart in powerbi which will show the currentyear/Last year sales comparison for last 12 months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Months should be calculated based on the time zone and the local time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried below dax&amp;nbsp; for last year sales volume :&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(SUM(Sales[Amount]),PARALLELPERIOD(Date[Date],-12,MONTH))&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not working for the timezone.&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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:55:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-Sales-volume-for-current-Last-year-for-multi/m-p/808949#M5117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-03T12:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for calculating Sales volume for current/Last year for multi Timezone</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-Sales-volume-for-current-Last-year-for-multi/m-p/809849#M5151</link>
      <description>&lt;P&gt;Adding more information to this.&lt;/P&gt;&lt;P&gt;There is the Timezone filter in the report last 12 months should be calculated based on the timezone selected. we already getting timezone and localtime calculated from timezone in Sales table.&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;</description>
      <pubDate>Fri, 04 Oct 2019 09:36:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-Sales-volume-for-current-Last-year-for-multi/m-p/809849#M5151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-04T09:36:09Z</dc:date>
    </item>
  </channel>
</rss>

