<?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: Parameters in Report Builder (DAX query from Power BI Report) in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1930392#M19937</link>
    <description>&lt;P&gt;You can add parameters in Report Builder Add Params section and use them in DAX too. Could you please post more details like the DAX you are trying to insert these in and where have you added these params.&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>Wed, 30 Jun 2021 09:39:35 GMT</pubDate>
    <dc:creator>AbhiSSRS</dc:creator>
    <dc:date>2021-06-30T09:39:35Z</dc:date>
    <item>
      <title>Parameters in Report Builder (DAX query from Power BI Report)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1929223#M19926</link>
      <description>&lt;P&gt;I am copying the dax query from PowerBI Performance analyser to create a report in Report Builder. The report works fine but I would like to add parameters just like slicers in PowerBI Report. I tried adding parameters manually but it does not work. Is there any way to make changes to my query.&lt;/P&gt;&lt;P&gt;I even tried this...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TREATAS({@param}, 'table'[Column])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any leads, it will be highly apppreciated.&lt;/P&gt;&lt;P&gt;I have tried the links to the articles posted in previous solutions. I was not able to figure it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 22:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1929223#M19926</guid>
      <dc:creator>niki_b</dc:creator>
      <dc:date>2021-06-29T22:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query from Power BI Report)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1930392#M19937</link>
      <description>&lt;P&gt;You can add parameters in Report Builder Add Params section and use them in DAX too. Could you please post more details like the DAX you are trying to insert these in and where have you added these params.&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>Wed, 30 Jun 2021 09:39:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1930392#M19937</guid>
      <dc:creator>AbhiSSRS</dc:creator>
      <dc:date>2021-06-30T09:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query from Power BI Report)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1935944#M19988</link>
      <description>&lt;P&gt;I already tried adding parameters from there. It gives me all the values for that parameter even after slicing.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in the above image, I have selected Increment in my parameter, it is still returning me all the rows. It means it is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DAX is as follows. I copied it from performance analyzer in my PowerBI report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable =&lt;BR /&gt;TREATAS({"1"}, 'ruleBankTypesHistory'[Change?])&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'ruleBankTypesHistory'[Type],&lt;BR /&gt;'ruleBankTypesHistory'[Old Value],&lt;BR /&gt;'ruleBankTypesHistory'[New Value],&lt;BR /&gt;'ruleBankTypesHistory'[Field],&lt;BR /&gt;'users'[Updated By],&lt;BR /&gt;'ruleBankTypesHistory'[updatedAt],&lt;BR /&gt;'Rules'[Rule Name],&lt;BR /&gt;'ruleset'[Ruleset],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;"CountRowsruleBankTypesHistory", CALCULATE(COUNTROWS('ruleBankTypesHistory'))&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;NOT(ISBLANK('ruleBankTypesHistory'[Type])),&lt;BR /&gt;NOT(ISBLANK('ruleBankTypesHistory'[Old Value]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('ruleBankTypesHistory'[New Value]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('ruleBankTypesHistory'[Field]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('users'[Updated By]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('ruleBankTypesHistory'[updatedAt]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Rules'[Rule Name]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('ruleset'[Ruleset]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"'ruleBankTypesHistory'[Type]", 'ruleBankTypesHistory'[Type],&lt;BR /&gt;"'ruleBankTypesHistory'[Old Value]", 'ruleBankTypesHistory'[Old Value],&lt;BR /&gt;"'ruleBankTypesHistory'[New Value]", 'ruleBankTypesHistory'[New Value],&lt;BR /&gt;"'ruleBankTypesHistory'[Field]", 'ruleBankTypesHistory'[Field],&lt;BR /&gt;"'users'[Updated By]", 'users'[Updated By],&lt;BR /&gt;"'ruleBankTypesHistory'[updatedAt]", 'ruleBankTypesHistory'[updatedAt],&lt;BR /&gt;"'Rules'[Rule Name]", 'Rules'[Rule Name],&lt;BR /&gt;"'ruleset'[Ruleset]", 'ruleset'[Ruleset]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 22:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1935944#M19988</guid>
      <dc:creator>niki_b</dc:creator>
      <dc:date>2021-07-02T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query from Power BI Report)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1939824#M20018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301739" data-lia-user-login="niki_b" class="lia-mention lia-mention-user"&gt;niki_b&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a simple sample for adding parameters. Please check:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;USE Test

CREATE TABLE Sales (
    Product VARCHAR(100),
	Store VARCHAR(100),
    Sales INT
)

INSERT INTO Sales VALUES('P1','S1',1)
INSERT INTO Sales VALUES('P2','S1',2)
INSERT INTO Sales VALUES('P3','S1',3)
INSERT INTO Sales VALUES('P1','S2',4)
INSERT INTO Sales VALUES('P4','S2',5)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;Product&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;Store&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;Sales&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;P1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;S1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;P2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;S1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;P3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;S1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;P1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;S2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;P4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;S2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="30px"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&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;
&lt;P&gt;1. Create a data source.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create a dataset needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Create Parameter tables for the fields needed.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Create parameters.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Modify Query of the dataset created in step2.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6. Test.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 10:16:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-from-Power-BI-Report/m-p/1939824#M20018</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-07-06T10:16:13Z</dc:date>
    </item>
  </channel>
</rss>

