<?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: undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480418#M67862</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;Start Date = MINX ( ALLSELECTED ( &amp;nbsp;DateTable ), DateTable[Date] )&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Start Date = CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable ) )&lt;/P&gt;&lt;P&gt;same for End Date but with MAXX or MAX&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 12:39:03 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-27T12:39:03Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480350#M67858</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Slicer that shows date as Between .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here i have selected 6 days as my search period .&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;How can i get the selected date period as Start date and End date Dax Query ?&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480350#M67858</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480359#M67859</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;i cannot achieve the expected output with FIRSTDATE , LASTDATE options&amp;nbsp; .&lt;BR /&gt;&lt;BR /&gt;Any Suggessions ? &lt;U&gt;&lt;STRONG&gt;my expected output was start date = 3/6/2022 , end date = 3/12/2022&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please Help&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:43:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480359#M67859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T11:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480418#M67862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can use&lt;/P&gt;&lt;P&gt;Start Date = MINX ( ALLSELECTED ( &amp;nbsp;DateTable ), DateTable[Date] )&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Start Date = CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable ) )&lt;/P&gt;&lt;P&gt;same for End Date but with MAXX or MAX&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 12:39:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480418#M67862</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-27T12:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480560#M67869</link>
      <description>&lt;P&gt;Hi , Thanks for the reply .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But both&amp;nbsp;&lt;SPAN&gt;MINX&amp;nbsp; and&amp;nbsp;CALCULATE ( MIN functions gives 7 not the min date of selected range . in my case the selected min date is 6th&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:09:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480560#M67869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480603#M67871</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have date table? Would you please paste the code you have used?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:25:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480603#M67871</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-27T13:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480770#M67886</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;With a date table.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Start = &lt;/SPAN&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;End = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dates[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Apr 2022 14:42:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480770#M67886</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480902#M67890</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why the answers differs ??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:32:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480902#M67890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480933#M67891</link>
      <description>&lt;P&gt;Sure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480933#M67891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-27T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480990#M67895</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE MIN = CALCULATE ( MIN ( SheetifCreatedDate]), ALLSELECTED ( Sheet1 ), REMOVEFILTERS ( ) )&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2480990#M67895</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-27T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2481157#M67910</link>
      <description>&lt;P&gt;The&amp;nbsp; date field you are using in the slicer should come from the date table. I think you don't have date table. If you use a date table you will be much happier in the future. I will paste code for a Date table. If you go to Modeling&amp;gt;New Table&amp;gt; then put the code in. Afterwhich you Mark the Date Table by selecting the Date field and validating on this. Then you connect your Date Table to your sheet one on Date Table Date to Sheet1 Date.&lt;/P&gt;&lt;P&gt;Then don't use the Sheet1 date field anymore. Use Date Table date field. I hope this makes sense.&lt;/P&gt;&lt;P&gt;Here is Date Table Code to start with:&lt;/P&gt;&lt;P&gt;Dates =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Specify a start date and end date&lt;/P&gt;&lt;P&gt;VAR StartDate = Date(2021,1,1)&lt;/P&gt;&lt;P&gt;VAR EndDate = Today()&lt;/P&gt;&lt;P&gt;VAR FiscalMonthEnd = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Generate a base table of dates&lt;/P&gt;&lt;P&gt;VAR BaseTable = Calendar(StartDate, EndDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Year for each individual date&lt;/P&gt;&lt;P&gt;VAR Years = ADDCOLUMNS(BaseTable,"Year",YEAR([Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the calendar month and other month related data for each date&lt;/P&gt;&lt;P&gt;VAR Months = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Years,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Month",MONTH([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Month Number",FORMAT([Date],"YYYY-MM"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Month Name",FORMAT([Date],"YYYY-MMM"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Fiscal Year", IF( FiscalMonthEnd = 12, YEAR([Date]), IF( MONTH([DATE]) &amp;lt;= FiscalMonthEnd, YEAR([DATE])-1, YEAR([Date]))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Fiscal Month", IF( FiscalMonthEnd = 12, MONTH([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF( MONTH([Date]) &amp;lt;= FiscalMonthEnd, FiscalMonthEnd + MONTH([Date]), MONTH([Date]) - FiscalMonthEnd))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Quarter and other quarter related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Quarters = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Months,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Quarter",ROUNDUP(MONTH([Date])/3,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Quarter",[Year] &amp;amp; "-Q" &amp;amp; ROUNDUP(MONTH([Date])/3,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Day and other day related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Days = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarters,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day",DAY([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Name",FORMAT([Date],"DDDD"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Of Week",WEEKDAY([Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Day Of Year", DATEDIFF (DATE(YEAR([Date]),1,1), [Date], DAY) + 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add the Week (assuming each week starts on a Sunday) and other week related data for each date&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Weeks = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Week Of Month (Sunday)",INT((DAY([Date])-1)/7)+1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Week of Year (Sunday)",WEEKNUM([Date],1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Year and Week (Sunday)",[Year] &amp;amp; "-W" &amp;amp; WEEKNUM([Date],1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- Add an 'Is Working Day' column which will be true for all days but Saturday and Sunday.&lt;/P&gt;&lt;P&gt;var WorkingDays = ADDCOLUMNS(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weeks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Is Working Day", NOT WEEKDAY( [Date] ) IN {1,7})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN WorkingDays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model should look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2481157#M67910</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-27T17:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2481928#M67980</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Wow , it works , thank you soo much for your kind concern &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 03:15:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2481928#M67980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T03:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2483121#M68061</link>
      <description>&lt;P&gt;Your welocme! Thank you too.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/2483121#M68061</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-04-28T11:41:46Z</dc:date>
    </item>
  </channel>
</rss>

