<?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: Working Days with relative date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954316#M98097</link>
    <description>&lt;P&gt;Ty for information.&lt;/P&gt;&lt;P&gt;Let's go!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;fData&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;dCalendar&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationships:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Result -&amp;gt; Relative Date = Yeserday&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when for monday, get the result of Friday&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;dax:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM = SUM(VALUE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try this, but are many&amp;nbsp;Measurements, and,&amp;nbsp;&amp;nbsp;I want something simpler if possible&lt;BR /&gt;dax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM WORKING DAY = 
	VAR vDataContexto = 
		MAX(dCalendario[Date])
	VAR vUltimoDiaUtil = 
		CALCULATE(
			MAX(dCalendar[Date]),
			FILTER(
				ALL(dCalendar),
				dCalendar[Date] &amp;lt; vDataContexto &amp;amp;&amp;amp; 
                Not(ISBLANK([SUM])) &amp;amp;&amp;amp;
				dCalendar[WORKING DAY] = "YES"
			)
		)
RETURN
CALCULATE(
		[SUM],
		FILTER(
			ALL(dCalendar[Date]),
			dCalendar[Date] = vUltimoDiaUtil
		)
	) &lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Dec 2022 14:42:23 GMT</pubDate>
    <dc:creator>jpaiva</dc:creator>
    <dc:date>2022-12-07T14:42:23Z</dc:date>
    <item>
      <title>Working Days with relative date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954032#M98069</link>
      <description>&lt;P&gt;I want to make a filter on the dashboard, with data only from working days. I don't want to show results on Saturday and Sunday.&lt;BR /&gt;I use a "calendario" table, and I have the "Working day" field with the option "Yes" or "No". But, even applying this filter, when I use "Relative Date" in the filter as "Yesterday", in the measures created, it shows the result of Sunday, on Monday. How to fix?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 12:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954032#M98069</guid>
      <dc:creator>jpaiva</dc:creator>
      <dc:date>2022-12-07T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Working Days with relative date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954211#M98082</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="483175" data-lia-user-login="jpaiva" class="lia-mention lia-mention-user"&gt;jpaiva&lt;/a&gt;&amp;nbsp;Would need more information such as your calculation formula, etc.&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:01:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954211#M98082</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-07T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Working Days with relative date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954316#M98097</link>
      <description>&lt;P&gt;Ty for information.&lt;/P&gt;&lt;P&gt;Let's go!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;fData&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;dCalendar&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationships:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Result -&amp;gt; Relative Date = Yeserday&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when for monday, get the result of Friday&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;dax:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM = SUM(VALUE)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try this, but are many&amp;nbsp;Measurements, and,&amp;nbsp;&amp;nbsp;I want something simpler if possible&lt;BR /&gt;dax:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUM WORKING DAY = 
	VAR vDataContexto = 
		MAX(dCalendario[Date])
	VAR vUltimoDiaUtil = 
		CALCULATE(
			MAX(dCalendar[Date]),
			FILTER(
				ALL(dCalendar),
				dCalendar[Date] &amp;lt; vDataContexto &amp;amp;&amp;amp; 
                Not(ISBLANK([SUM])) &amp;amp;&amp;amp;
				dCalendar[WORKING DAY] = "YES"
			)
		)
RETURN
CALCULATE(
		[SUM],
		FILTER(
			ALL(dCalendar[Date]),
			dCalendar[Date] = vUltimoDiaUtil
		)
	) &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Working-Days-with-relative-date/m-p/2954316#M98097</guid>
      <dc:creator>jpaiva</dc:creator>
      <dc:date>2022-12-07T14:42:23Z</dc:date>
    </item>
  </channel>
</rss>

