<?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: Help request in creating a boolean measure using related table - pbix &amp;amp; dax query template provided in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508676#M29275</link>
    <description>&lt;P&gt;Thank you for the valuable suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, modified the measure that works at all the time levels (Year, Qtr and Month) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEFINE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MEASURE&lt;/SPAN&gt; &lt;SPAN&gt;time_date[IsBetweenF2TableMinMaxDates]&lt;/SPAN&gt; =&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; FirstDateWithData = &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;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;, f2 &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; LastDateWithData = &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;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;, f2 &lt;SPAN&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; CurrentRowDate = &lt;SPAN&gt;MIN&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; Result = CurrentRowDate &amp;gt;= FirstDateWithData &lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; CurrentRowDate &amp;lt;= LastDateWithData&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; Result&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EVALUATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- time_date[time_date_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--, time_date[time_date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cmon_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cqtr_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time_date[time_cy_id]&lt;/SPAN&gt;&lt;BR /&gt;, &lt;SPAN&gt;"IsBetweenF2TableMinMaxDates"&lt;/SPAN&gt;, &lt;SPAN&gt;time_date[IsBetweenF2TableMinMaxDates]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;order&lt;/SPAN&gt; &lt;SPAN&gt;by&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;-- time_date[time_date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cmon_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cqtr_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time_date[time_cy_id]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Nov 2020 13:48:49 GMT</pubDate>
    <dc:creator>ajit_singh</dc:creator>
    <dc:date>2020-11-21T13:48:49Z</dc:date>
    <item>
      <title>Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508651#M29264</link>
      <description>&lt;P&gt;Dear DAX experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pbix file location:&amp;nbsp; &lt;A href="https://github.com/business-data-analytics/powerbi/raw/main/assets/ajit-dax-modeling.pbix" target="_blank" rel="noopener"&gt;https://github.com/business-data-analytics/powerbi/raw/main/assets/ajit-dax-modeling.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"f2" table has many to one relationship with "time_date" table using common "time_date_id" key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from time_date table, I am trying to get the date column (time_date[time_date]) and a boolean if the current date falls between the min and max date from f2 table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below dax query, MEASURE time_date[IsBetweenF2TableMinMaxDates] needs to be modified so that it returns "true" only if the current context date falls between the min and max date in f2 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;&lt;SPAN class="Keyword"&gt;DEFINE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;MEASURE&lt;/SPAN&gt;&amp;nbsp;time_date[IsBetweenF2TableMinMaxDates]&amp;nbsp;=&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;VAR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Variable"&gt;LastDateWithData&lt;/SPAN&gt;&amp;nbsp;=&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Keyword"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;time_date[time_date]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;VAR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Variable"&gt;FirstDateVisible&lt;/SPAN&gt;&amp;nbsp;=&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;MIN&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;time_date[time_date]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;VAR&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Variable"&gt;Result&lt;/SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;SPAN class="Variable"&gt;FirstDateVisible&lt;/SPAN&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;SPAN class="Variable"&gt;LastDateWithData&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent8"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Variable"&gt;Result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;EVALUATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;time_date[time_date_id],&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;time_date[time_date],&lt;BR /&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="StringLiteral"&gt;"IsBetweenF2TableMinMaxDates"&lt;/SPAN&gt;,&amp;nbsp;time_date[IsBetweenF2TableMinMaxDates]&lt;BR /&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="Keyword"&gt;ORDER&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Keyword"&gt;BY&lt;/SPAN&gt;&amp;nbsp;time_date[time_date]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajit Singh.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 04:49:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508651#M29264</guid>
      <dc:creator>ajit_singh</dc:creator>
      <dc:date>2021-02-11T04:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508658#M29266</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="271989" data-lia-user-login="ajit_singh" class="lia-mention lia-mention-user"&gt;ajit_singh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a relationship between the date and the f2 table then there is always a filter a flow so you get the current date between min and max of f2.&lt;BR /&gt;What do you mean by the current date ? is it today's date?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank" rel="noopener"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank" rel="noopener"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 12:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508658#M29266</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-11-21T12:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508669#M29271</link>
      <description>&lt;P&gt;Sorry, by current date, I meant the date of the current row in time_date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;f2 table contains the data for 2007, 2008 &amp;amp; 2009 year. So, the output of the query should have the value true only for dates of year&amp;nbsp;2007, 2008 &amp;amp; 2009 year and the rest of the dates should have the measure value as false.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 13:21:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508669#M29271</guid>
      <dc:creator>ajit_singh</dc:creator>
      <dc:date>2020-11-21T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508671#M29272</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="271989" data-lia-user-login="ajit_singh" class="lia-mention lia-mention-user"&gt;ajit_singh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Make a small change to your formula: Replace RemoveFilters() with F2&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;CALCULATE ( MAX ( time_date[time_date] ), F2&amp;nbsp;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 13:28:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508671#M29272</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-11-21T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508672#M29273</link>
      <description>&lt;P&gt;Thank you so much. I just started working with DAX and it is making me feel really dumb.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 13:35:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508672#M29273</guid>
      <dc:creator>ajit_singh</dc:creator>
      <dc:date>2020-11-21T13:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508673#M29274</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="271989" data-lia-user-login="ajit_singh" class="lia-mention lia-mention-user"&gt;ajit_singh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have been there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Always&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;keep the model in your mind&lt;/LI&gt;&lt;LI&gt;Think from the context evaluation perspective&lt;/LI&gt;&lt;LI&gt;Keep it simple&lt;/LI&gt;&lt;LI&gt;Use variables&lt;BR /&gt;&lt;BR /&gt;Good luck . . .&amp;nbsp;&lt;BR /&gt;Fowmy&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 21 Nov 2020 13:40:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508673#M29274</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-11-21T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help request in creating a boolean measure using related table - pbix &amp; dax query template provided</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508676#M29275</link>
      <description>&lt;P&gt;Thank you for the valuable suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, modified the measure that works at all the time levels (Year, Qtr and Month) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEFINE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MEASURE&lt;/SPAN&gt; &lt;SPAN&gt;time_date[IsBetweenF2TableMinMaxDates]&lt;/SPAN&gt; =&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; FirstDateWithData = &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;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;, f2 &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; LastDateWithData = &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;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;, f2 &lt;SPAN&gt;)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VAR&lt;/SPAN&gt; CurrentRowDate = &lt;SPAN&gt;MIN&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;time_date[time_date]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;VAR&lt;/SPAN&gt; Result = CurrentRowDate &amp;gt;= FirstDateWithData &lt;SPAN&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; CurrentRowDate &amp;lt;= LastDateWithData&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; Result&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EVALUATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- time_date[time_date_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--, time_date[time_date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cmon_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cqtr_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time_date[time_cy_id]&lt;/SPAN&gt;&lt;BR /&gt;, &lt;SPAN&gt;"IsBetweenF2TableMinMaxDates"&lt;/SPAN&gt;, &lt;SPAN&gt;time_date[IsBetweenF2TableMinMaxDates]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;order&lt;/SPAN&gt; &lt;SPAN&gt;by&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;-- time_date[time_date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cmon_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--time_date[time_cqtr_id]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time_date[time_cy_id]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 13:48:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-request-in-creating-a-boolean-measure-using-related-table/m-p/1508676#M29275</guid>
      <dc:creator>ajit_singh</dc:creator>
      <dc:date>2020-11-21T13:48:49Z</dc:date>
    </item>
  </channel>
</rss>

