<?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: How to get current week, last week, current month, last month, last year  for multiples metrics? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1609302#M27347</link>
    <description>&lt;P&gt;If you do frequent data source refreshes (ie daily) then you can create calculated columns for these during the ETL.&amp;nbsp; If you need measures (which I don't think you do) then use the same formulas but make sure to adjust the filter context accordingly.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 18:40:32 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-01-19T18:40:32Z</dc:date>
    <item>
      <title>How to get current week, last week, current month, last month, last year  for multiples metrics?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1608432#M27342</link>
      <description>&lt;P&gt;I need to make a matrix column with multiple metrics as rows and current week, last week, current month, last month, last year as columns. How do i get it in power bi?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 11:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1608432#M27342</guid>
      <dc:creator>pranesh246</dc:creator>
      <dc:date>2021-01-19T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get current week, last week, current month, last month, last year  for multiples metrics?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1609302#M27347</link>
      <description>&lt;P&gt;If you do frequent data source refreshes (ie daily) then you can create calculated columns for these during the ETL.&amp;nbsp; If you need measures (which I don't think you do) then use the same formulas but make sure to adjust the filter context accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 18:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1609302#M27347</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-19T18:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get current week, last week, current month, last month, last year  for multiples metrics?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1613178#M27394</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/280894"&gt;@pranesh246&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to your description, I think measure expression should suitable for your requirement. For your scenario, I think you can create a matrix with category and date hierarchy fields and write a measure with DAX expressions to extract current row contents and compare with 'if statement' or use switch functions to replace the displayed value with different expression results.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, if you are confused about coding formulas,&amp;nbsp;can please share some dummy data with a similar data structure and expected results? It should help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&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;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:24:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-current-week-last-week-current-month-last-month-last/m-p/1613178#M27394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-21T06:24:58Z</dc:date>
    </item>
  </channel>
</rss>

