<?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: Substitute Value in Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3169652#M114211</link>
    <description>&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2023 14:25:05 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-04-03T14:25:05Z</dc:date>
    <item>
      <title>Substitute Value in Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3168019#M114091</link>
      <description>&lt;P&gt;I have a simple measure that counts the number of enrollments for three unique periods, Fall, Spring and Summer.&amp;nbsp; &amp;nbsp;Using SelectedValue I can tell what priod has been requested and only want to return those entries.&amp;nbsp; &amp;nbsp;My measure is as follows and I would like to substitute the term variabale (Fall, Spring or Summer) in the FIlter line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have have no sucesss, if you enter "Fall" it works great, so I need a method to have Quotiations in the substution,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(Enrollment),&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;All&lt;/SPAN&gt;&lt;SPAN&gt;(Enrollment[Deposit Intent to Enroll Date/Time]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;Enrollment[Program] = _program,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;Enrollment[Start Term and Year] = _termyear,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;Enrollment[Deposit Intent to Enroll] = &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;Enrollment[Deposit Intent to Enroll Date/Time] &amp;lt;=enddate,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Enrollment',&lt;/SPAN&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;('Enrollment'[Start Term and Year],&lt;/SPAN&gt;&lt;SPAN&gt;_term&lt;/SPAN&gt;&lt;SPAN&gt;))))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amy and all suggestions willbe greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 21:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3168019#M114091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-02T21:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute Value in Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3168050#M114094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;manually create 'Terms' a disconnected single column table that contains fall, spring, summer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the measure define the variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR _term = SELECTEDVALUE ( Terms[Term] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 21:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3168050#M114094</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-02T21:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute Value in Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3169638#M114209</link>
      <description>&lt;P&gt;tamerj1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your quick reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a quick test and am still having an issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I have taken.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Made a quick Term table which looks like this&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Added the following selection statement, which returns “Fall”&amp;nbsp; VAR _term = SELECTEDVALUE(FallTerm[Term])&lt;/LI&gt;&lt;LI&gt;Add _term to filter statement and there was no return of column data.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Removed the quotations and there was no return of column data.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Hard coded “Fall” in filter statement and column data is returned.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to assume the only two items that are causing the problem is that created the Term table incorrectly, or something else needs to done to handle the quotation marks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your time with this issue, it appears to be a simple problem , unfortunately I have not been able to find the answer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pjb120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:20:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3169638#M114209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-03T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute Value in Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3169652#M114211</link>
      <description>&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 14:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Substitute-Value-in-Filter/m-p/3169652#M114211</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-03T14:25:05Z</dc:date>
    </item>
  </channel>
</rss>

