<?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: Year parameter wants to be treated as text in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3363818#M30751</link>
    <description>&lt;P&gt;Thank you for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the parameter settings the system auto created.&amp;nbsp; &amp;nbsp;In my testing, I have deleted both the query and underlying parameter.&amp;nbsp; &amp;nbsp;Report runs successfully.&amp;nbsp; &amp;nbsp;Then I put the parameter back in, with auto parameter creation with same error result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have auto updates turned on, and appears I have the most recent version.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 14:02:35 GMT</pubDate>
    <dc:creator>Dellis81</dc:creator>
    <dc:date>2023-08-03T14:02:35Z</dc:date>
    <item>
      <title>Year parameter wants to be treated as text</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3362020#M30740</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I attempt to understand paginated reporting - came across a weird instance of where the drop down selection for year is preceeded by a 1|.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified in the source pbix file, the "Year" data column is treated as a whole number.&lt;/P&gt;&lt;P&gt;Below is the dax query (as found in the hidden datasets) for this parameter&lt;/P&gt;&lt;H3&gt;EVALUATE SELECTCOLUMNS (ADDCOLUMNS (SUMMARIZECOLUMNS (ROLLUPADDISSUBTOTAL ('CALENDAR'[Year], "h0")), "ParameterLevel", if ([h0], 0, 1)), "ParameterCaption", SWITCH([ParameterLevel], 1, 'CALENDAR'[Year], "All"), "ParameterValue", [ParameterLevel] &amp;amp; "|" &amp;amp; 'CALENDAR'[Year], "ParameterLevel", [ParameterLevel], "'CALENDAR'[Year]", 'CALENDAR'[Year]) order by 'CALENDAR'[Year], [ParameterLevel]&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, a component of this query contains&amp;nbsp;"ParameterValue", [ParameterLevel] &amp;amp; "|" &amp;amp; 'CALENDAR'[Year].&amp;nbsp; This is probably the cause - but I have no clue what it means or purpose.&amp;nbsp; &amp;nbsp;I have tried to delete segments of the query - only resulting in errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have a second pbix model with a connected rdl file - using Year from the calendar table - that is working correctly.&amp;nbsp; So, I know my process is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 15:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3362020#M30740</guid>
      <dc:creator>Dellis81</dc:creator>
      <dc:date>2023-08-02T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Year parameter wants to be treated as text</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3362551#M30742</link>
      <description>&lt;P&gt;What this probably means is that someone has been into the parameter properties and in the Available Values the Label field has been set to the "ParameterValue" column. In the autogenerated parameters this should be set to the "ParameterCaption" column&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Each parameter in an RDL report has 2 properties, the Value which is passed in to the query and the caption which is what the user sees. This lets you do things like show the user a ProductName, but pass a ProductID to your query. This is not as useful in DAX based queries, but is often used in SQL based reports.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 22:28:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3362551#M30742</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-08-02T22:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Year parameter wants to be treated as text</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3363818#M30751</link>
      <description>&lt;P&gt;Thank you for your response &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the parameter settings the system auto created.&amp;nbsp; &amp;nbsp;In my testing, I have deleted both the query and underlying parameter.&amp;nbsp; &amp;nbsp;Report runs successfully.&amp;nbsp; &amp;nbsp;Then I put the parameter back in, with auto parameter creation with same error result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have auto updates turned on, and appears I have the most recent version.&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 14:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Year-parameter-wants-to-be-treated-as-text/m-p/3363818#M30751</guid>
      <dc:creator>Dellis81</dc:creator>
      <dc:date>2023-08-03T14:02:35Z</dc:date>
    </item>
  </channel>
</rss>

