<?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: Report Builder - declare parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/1880988#M40422</link>
    <description>&lt;P&gt;To elaborate on the above, I have added an 'All' option to my parameter and I am trying to update the dax query to allow for this. If All is selected all rows should be returned, otherwise a filter based on the values selected in the parameter.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was thinking something like the below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RSCustomDaxFilter(@ReportingCostCentreReportingSegment,If(@ReportingCostCentreReportingSegment="All",NotEqualToCondition,EqualToCondition),[Reporting Cost Centre].[Reporting Segment],String)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But the query syntax is not accepted&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 00:16:39 GMT</pubDate>
    <dc:creator>Craig_Donoghue</dc:creator>
    <dc:date>2021-06-04T00:16:39Z</dc:date>
    <item>
      <title>Report Builder - declare parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/1879168#M40347</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to filter a dax query using a parameter value in PBI report builder. This works fine when I have the parameter inside the RSCustomDaxFilter function, but as soon as I try to use a parameter outside of that function I receive an error "The query contains the [parameter name] parameter, which is not declared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it is as it works fine inside the dax filter function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the query. The parameter in question is&amp;nbsp;&lt;FONT color="#FF0000"&gt;@ReportingCostCentreReportingSegment&lt;/FONT&gt;, but I have also tried other parameters and using the parameters in different ways, but always the same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;SUMMARIZECOLUMNS('GL Account'[Account Group 1], 'GL Account'[Account Group 2], 'GL Account'[Account Group 3],&lt;BR /&gt;'GL Account'[Account Group 4], 'GL Account'[Account Group 5], 'GL Account'[Account Group 6], 'GL Account'[GL Number]&lt;BR /&gt;, 'GL Account'[GL Name], 'GL Account'[GL Account], 'GL Account'[Account Type]&lt;/P&gt;&lt;P&gt;, RSCustomDaxFilter(@DateFinancialYear,EqualToCondition,[Date].[Financial Year],String)&lt;BR /&gt;, RSCustomDaxFilter(@ScenarioScenario,EqualToCondition,[Scenario].[Scenario],String)&lt;BR /&gt;, RSCustomDaxFilter(@DateMonth,EqualToCondition,[Date].[Month],String)&lt;BR /&gt;, RSCustomDaxFilter(@ReportingCostCentreReportingCode,EqualToCondition,[Reporting Cost Centre].[Reporting Code],String)&lt;BR /&gt;, RSCustomDaxFilter(@CountryCountry,EqualToCondition,[Country].[Country],String)&lt;BR /&gt;, RSCustomDaxFilter(@CompanyCompany,EqualToCondition,[Company].[Company],String)&lt;BR /&gt;, RSCustomDaxFilter(@CurrencyCurrency,EqualToCondition,[Currency].[Currency],String)&lt;BR /&gt;, RSCustomDaxFilter(@ReportingCostCentreReportingNonSegment,EqualToCondition,[Reporting Cost Centre].[Reporting Non-Segment],String)&lt;/P&gt;&lt;P&gt;, FILTER(VALUES('Reporting Cost Centre'.[Reporting Segment]), ('Reporting Cost Centre'.[Reporting Segment] = &lt;FONT color="#FF0000"&gt;@ReportingCostCentreReportingSegment&lt;/FONT&gt;))&lt;BR /&gt;, FILTER(VALUES('GL Account'[Account Type]), ('GL Account'[Account Type] = "Income Statement"))&lt;BR /&gt;, FILTER(VALUES('Currency Format'[Currency Format]), ('Currency Format'[Currency Format] = "Currency Symbol"))&lt;BR /&gt;, "Actual", [Actual], "Budget", [Budget], "Forecast", [Forecast])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 05:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/1879168#M40347</guid>
      <dc:creator>Craig_Donoghue</dc:creator>
      <dc:date>2021-06-03T05:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Report Builder - declare parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/1880988#M40422</link>
      <description>&lt;P&gt;To elaborate on the above, I have added an 'All' option to my parameter and I am trying to update the dax query to allow for this. If All is selected all rows should be returned, otherwise a filter based on the values selected in the parameter.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was thinking something like the below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RSCustomDaxFilter(@ReportingCostCentreReportingSegment,If(@ReportingCostCentreReportingSegment="All",NotEqualToCondition,EqualToCondition),[Reporting Cost Centre].[Reporting Segment],String)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But the query syntax is not accepted&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 00:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/1880988#M40422</guid>
      <dc:creator>Craig_Donoghue</dc:creator>
      <dc:date>2021-06-04T00:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Report Builder - declare parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/2699688#M81644</link>
      <description>&lt;P&gt;&lt;A title="DAX pattern schematic that I use. No need to use RSCustomDaxFilter function" href="https://stackoverflow.com/questions/68820105/pass-a-parameter-to-dax-query-report-builder/72443906#72443906" target="_self"&gt;DAX pattern schematic that I use. No need to use RSCustomDaxFilter function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See your "All" with&amp;nbsp;&lt;SPAN&gt;RSCustomDaxFilter function&lt;/SPAN&gt; usage.&amp;nbsp; My alternative via the link above.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 05:12:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Report-Builder-declare-parameters/m-p/2699688#M81644</guid>
      <dc:creator>garythomannCoGC</dc:creator>
      <dc:date>2022-08-15T05:12:36Z</dc:date>
    </item>
  </channel>
</rss>

