<?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 DAX with Today (text data type), Last 7 dates(with text data type) and future dates(date data type)? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423525#M129635</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am new to power bi.&lt;/P&gt;&lt;P&gt;Kindly please help me below dax issue with date dropdown filter.&lt;/P&gt;&lt;P&gt;Like, Today date with Text Data Type&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last 7 days with Text Data Type&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and Future dates with Date Data Type.&lt;/P&gt;&lt;P&gt;Kindly please he me on this case. I need to go all above cases in one dropdown filter. please help me best approch?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 04:25:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-11T04:25:18Z</dc:date>
    <item>
      <title>DAX with Today (text data type), Last 7 dates(with text data type) and future dates(date data type)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423525#M129635</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am new to power bi.&lt;/P&gt;&lt;P&gt;Kindly please help me below dax issue with date dropdown filter.&lt;/P&gt;&lt;P&gt;Like, Today date with Text Data Type&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Last 7 days with Text Data Type&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and Future dates with Date Data Type.&lt;/P&gt;&lt;P&gt;Kindly please he me on this case. I need to go all above cases in one dropdown filter. please help me best approch?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 04:25:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423525#M129635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-11T04:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX with Today (text data type), Last 7 dates(with text data type) and future dates(date data type)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423539#M129636</link>
      <description>&lt;P&gt;I think it can be achieved using&lt;/P&gt;&lt;P&gt;"detect data type" option in" transform" tab of "power query editor"me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 04:45:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423539#M129636</guid>
      <dc:creator>Ashok507</dc:creator>
      <dc:date>2023-09-11T04:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX with Today (text data type), Last 7 dates(with text data type) and future dates(date data type)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423540#M129637</link>
      <description>&lt;P&gt;No it is not working we will go with dax commands.&lt;BR /&gt;please suggest with DAX command!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 04:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3423540#M129637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-11T04:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX with Today (text data type), Last 7 dates(with text data type) and future dates(date data type)?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3427541#M129899</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;Are you referring to the selection of the slicer to display the corresponding date.&lt;/P&gt;
&lt;P&gt;Table1：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Table2：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=SELECTEDVALUE('Table'[Slicer])
var _today=TODAY()
return
SWITCH(
    TRUE(),
    _select="Today"&amp;amp;&amp;amp;MAX('Table 2'[Date])=_today,1,
    _select="Last 7 dates"&amp;amp;&amp;amp;MAX('Table 2'[Date])&amp;gt;=_today-7&amp;amp;&amp;amp;MAX('Table 2'[Date])&amp;lt;_today,1,
    _select="future dates"&amp;amp;&amp;amp;MAX('Table 2'[Date])&amp;gt;_today,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 03:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-with-Today-text-data-type-Last-7-dates-with-text-data-type/m-p/3427541#M129899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-13T03:59:59Z</dc:date>
    </item>
  </channel>
</rss>

