<?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: The Query contains the &amp;quot;XXXX&amp;quot; parameter, which is not declared. in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1812505#M19080</link>
    <description>&lt;P&gt;Please refer to below youtube video (At 12:00 Min in video) from "Guy in cube" wherein he did use parameter for TREATAS.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=KYfhclGrI48&amp;amp;t=892s" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=KYfhclGrI48&amp;amp;t=892s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you suggesting that TREATAS function was supporting parameters up until one point of time and just not able to support it now?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 23:10:55 GMT</pubDate>
    <dc:creator>nilimarodrigues</dc:creator>
    <dc:date>2021-04-28T23:10:55Z</dc:date>
    <item>
      <title>The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1773441#M18806</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use "Paginated Report" on top of Power BI dataset. My dataset is a "Direct Query" connection on Azure datalake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to create Paginated report with parameters, while creating dataset, I am using the query obtained through "Performance Analyzer" as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Direct Query&lt;BR /&gt;Define&lt;/P&gt;&lt;P&gt;MEASURE 'FactVolume'[ASDQ_GRs] = [Gross Receipts]&lt;BR /&gt;MEASURE 'FactVolume'[ASDQ_CCAs] = [CCA]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var ASDQ___DS0FilterTable3 = TREATAS({@KPI}, 'DimMeasures'[Measure Name])&lt;BR /&gt;var ASDQ___DS0FilterTable4 = TREATAS({"Treatment"}, 'Product'[Level 4 A])&lt;BR /&gt;var ASDQ___DS0Core = SUMMARIZECOLUMNS(&lt;BR /&gt;'DimDate'[Date],&lt;BR /&gt;ASDQ___DS0FilterTable3,&lt;BR /&gt;ASDQ___DS0FilterTable4,&lt;BR /&gt;"GRs", [ASDQ_GRs]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;ASDQ___DS0Core&lt;/P&gt;&lt;P&gt;ORDER BY&lt;BR /&gt;'DimDate'[Date] DESC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the parameter in "Query Parameters". In spite of declaring the parameter, I am constantly receiving below error:&lt;/P&gt;&lt;P&gt;"OLEDB or ODBC error: The Query contains the 'KPI' parameter, which is not declared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Do "Parameters" work with Power BI dataset connection which are of type "Direct Query"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to resolve this issue? Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/111107"&gt;@pabeader&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nilimarodrigues_0-1617856815110.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/490818iE2827FA206B837D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nilimarodrigues_0-1617856815110.png" alt="nilimarodrigues_0-1617856815110.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nilimarodrigues_1-1617856823903.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/490819iA39ECFE75E5EFB7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nilimarodrigues_1-1617856823903.png" alt="nilimarodrigues_1-1617856823903.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 04:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1773441#M18806</guid>
      <dc:creator>nilimarodrigues</dc:creator>
      <dc:date>2021-04-08T04:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1775261#M18812</link>
      <description>&lt;P&gt;Hello - Can some one please help with how can I proceed with resolving this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add - I just tried another dataset which have had "Import" connection and that worked fine. Is there a limitation on using parameters with direct connection?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 19:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1775261#M18812</guid>
      <dc:creator>nilimarodrigues</dc:creator>
      <dc:date>2021-04-08T19:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1778893#M18836</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/64867"&gt;@nilimarodrigues&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that you used the 'treatas' function in the code expression.&amp;nbsp;The following parameter must be&amp;nbsp;&lt;SPAN&gt;one or more existing columns. It cannot be an expression. So it can't&amp;nbsp;recognize KPI, not DQ problem. You need to&amp;nbsp;convert measure to column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v-janeyg-msft_0-1618193310161.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/492650iD49F341A35A8D45A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v-janeyg-msft_0-1618193310161.png" alt="v-janeyg-msft_0-1618193310161.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/treatas-function" target="_blank"&gt;TREATAS function - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it doesn’t solve your problem, please feel free to ask me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Janey Guo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 02:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1778893#M18836</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2021-04-12T02:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1801300#M18987</link>
      <description>&lt;P&gt;Hi v-janeyg-msft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late reply but measure name is not a "Measure" its a column. Its a characteristic field. It has values like KPI1, KPI2 etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not using TREATAS on a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nilima&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 21:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1801300#M18987</guid>
      <dc:creator>nilimarodrigues</dc:creator>
      <dc:date>2021-04-22T21:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1804671#M19012</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/64867"&gt;@nilimarodrigues&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to modify the first line of code and make it comply with the rules of use of the &lt;SPAN&gt;TREATAS. It doesn't seem to support parameters.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.27.png" style="width: 786px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/501500i1C0EE4A1E975F029/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.27.png" alt="4.27.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Janey Guo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 01:50:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1804671#M19012</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2021-04-26T01:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1812505#M19080</link>
      <description>&lt;P&gt;Please refer to below youtube video (At 12:00 Min in video) from "Guy in cube" wherein he did use parameter for TREATAS.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=KYfhclGrI48&amp;amp;t=892s" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=KYfhclGrI48&amp;amp;t=892s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you suggesting that TREATAS function was supporting parameters up until one point of time and just not able to support it now?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 23:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1812505#M19080</guid>
      <dc:creator>nilimarodrigues</dc:creator>
      <dc:date>2021-04-28T23:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1813822#M19096</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/64867"&gt;@nilimarodrigues&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said you use DQ mode and &lt;SPAN&gt;'DimMeasures'[Measure Name] should be a calculated column&lt;/SPAN&gt;, so I think this is a conflict.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v-janeyg-msft_0-1619690428844.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/504567iFB39A8850E91B478/image-size/large?v=v2&amp;amp;px=999" role="button" title="v-janeyg-msft_0-1619690428844.png" alt="v-janeyg-msft_0-1619690428844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you change it to import or turn the calculated column into a column then try it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Janey Guo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 10:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1813822#M19096</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2021-04-29T10:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1817293#M19123</link>
      <description>&lt;P&gt;Hello Janey - Yes, I am using DQ mode as data volume is pretty high and Import option will not work for me. But "Measure Name" is not a calculated column in power BI. In fact, this column directly comes from underneath tabular model itself.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 17:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1817293#M19123</guid>
      <dc:creator>nilimarodrigues</dc:creator>
      <dc:date>2021-04-30T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1835565#M19278</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/64867"&gt;@nilimarodrigues&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your later description, your code seems to be no problem, it's so strange. I'm sorry not to help you to solve it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v-janeyg-msft_0-1620721956223.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/512075iFF3509DD2D9CD715/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v-janeyg-msft_0-1620721956223.png" alt="v-janeyg-msft_0-1620721956223.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do you mean [measure name] is a column? If it is a column created in the model, it is not a real column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Janey Guo&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:35:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/1835565#M19278</guid>
      <dc:creator>v-janeyg-msft</dc:creator>
      <dc:date>2021-05-11T08:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/2453501#M23700</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/64867" target="_blank"&gt;Hi @nilimarodrigues&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;did you find a way to resolved this issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 23:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/2453501#M23700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-12T23:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: The Query contains the "XXXX" parameter, which is not declared.</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/3442098#M31180</link>
      <description>&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/64867" target="_blank"&gt;@nilimarodrigues&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;Were you able to resolve this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created a Dataset DCOO for table DCOO field DCOO. Created a parameter in the model from it called DCOO. Automatically created a report parameter DCOO. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attempted to create a Dataset called Contracts with&amp;nbsp; the parameter: DEFINED&amp;nbsp; the VAR for the query and set the parameter DCOO for DCOO on level DCOO for ALL. Getting the same NOT DECLARED message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jack2of3_0-1695329054163.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/971947i42B2C40ED85A534F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jack2of3_0-1695329054163.png" alt="Jack2of3_0-1695329054163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also tried setting the parameter on the Dataset Properties page of the Contracts Dataset after changing the VAR back to a constant (query runs fine) and then trying to change it back to parameter (Not Declared)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:50:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/The-Query-contains-the-quot-XXXX-quot-parameter-which-is-not/m-p/3442098#M31180</guid>
      <dc:creator>Jack2of3</dc:creator>
      <dc:date>2023-09-21T20:50:36Z</dc:date>
    </item>
  </channel>
</rss>

