<?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 Power BI: Show weekend Data on Monday or Friday in Quick Measures Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-Show-weekend-Data-on-Monday-or-Friday/m-p/2659838#M871</link>
    <description>&lt;H1&gt;Problem: I have data for all weekdays, but I do not want to show data on weekends, I would like to show the same on Monday&lt;/H1&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;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;There is a solution like creating a new date column and moving weekend to Monday or Friday and join the new column with the date.&lt;BR /&gt;But we would like to have a solution using only measures. This means we need to move weekend data by 1–2 days on either side&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Columns I already have in the Model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Discount = [Gross Sales]*[Dis Per]/100.0
Gross Sales = [Qty] * [Price]
Net Sales = [Gross Sales] - [Discount]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Measure I am using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net = Sum(Sales[Net Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;New measures created for weekend data moved to Monday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net non Work = CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) &amp;gt;=6 ))
Net non work 1 = CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =6 )) , dateadd('Date'[Date],-2,DAY)) + CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =7 )) , dateadd('Date'[Date],-1,DAY))
Net Work = CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) &amp;lt;6 ))
Net Show on Monday = [Net Work] + [Net non work 1]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New measures created for Friday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net non work b 1 = CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =6 )) , dateadd('Date'[Date],1,DAY)) + CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =7 )) , dateadd('Date'[Date],2,DAY))
Net Show on Friday = [Net Work] + [Net non work b 1]
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find more details on the &lt;A href="https://amitchandak.medium.com/power-bi-show-weekend-data-on-monday-or-friday-dab5ee201f0e" target="_self"&gt;Blog&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 17:22:07 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-07-25T17:22:07Z</dc:date>
    <item>
      <title>Power BI: Show weekend Data on Monday or Friday</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-Show-weekend-Data-on-Monday-or-Friday/m-p/2659838#M871</link>
      <description>&lt;H1&gt;Problem: I have data for all weekdays, but I do not want to show data on weekends, I would like to show the same on Monday&lt;/H1&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;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;There is a solution like creating a new date column and moving weekend to Monday or Friday and join the new column with the date.&lt;BR /&gt;But we would like to have a solution using only measures. This means we need to move weekend data by 1–2 days on either side&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Columns I already have in the Model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Discount = [Gross Sales]*[Dis Per]/100.0
Gross Sales = [Qty] * [Price]
Net Sales = [Gross Sales] - [Discount]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Measure I am using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net = Sum(Sales[Net Sales])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;New measures created for weekend data moved to Monday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net non Work = CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) &amp;gt;=6 ))
Net non work 1 = CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =6 )) , dateadd('Date'[Date],-2,DAY)) + CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =7 )) , dateadd('Date'[Date],-1,DAY))
Net Work = CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) &amp;lt;6 ))
Net Show on Monday = [Net Work] + [Net non work 1]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New measures created for Friday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Net non work b 1 = CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =6 )) , dateadd('Date'[Date],1,DAY)) + CALCULATE(CALCULATE([net] , filter('Date', WEEKDAY('Date'[Date],2) =7 )) , dateadd('Date'[Date],2,DAY))
Net Show on Friday = [Net Work] + [Net non work b 1]
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find more details on the &lt;A href="https://amitchandak.medium.com/power-bi-show-weekend-data-on-monday-or-friday-dab5ee201f0e" target="_self"&gt;Blog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 17:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-Show-weekend-Data-on-Monday-or-Friday/m-p/2659838#M871</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-25T17:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Show weekend Data on Monday or Friday</title>
      <link>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-Show-weekend-Data-on-Monday-or-Friday/m-p/4325065#M1155</link>
      <description>&lt;P&gt;How can i handle crossing months?&amp;nbsp;if 30th november sales is on saturday, i want the sales to be added to 29th of november which is friday. if 1st december sales is on sunday, i want the sales to be added to 2nd december which is monday. so ideally, weekend sales should be added to the closest working day in the same month.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 05:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Power-BI-Show-weekend-Data-on-Monday-or-Friday/m-p/4325065#M1155</guid>
      <dc:creator>Shravan133</dc:creator>
      <dc:date>2024-12-12T05:13:18Z</dc:date>
    </item>
  </channel>
</rss>

