<?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 copied from Performance Analyzer) in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1787535#M18896</link>
    <description>&lt;P&gt;Hi folks... I was able to get parameters to work a variable like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; __DS0FilterTable5 =&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;{&lt;SPAN&gt;@paramCropYear&lt;/SPAN&gt;}, &lt;SPAN&gt;'Planted Crop'[CropYear]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&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;DEFINE
 VAR__DS0FilterTable5 = 
    TREATAS({@paramCropYear}, 'Planted Crop'[CropYear])

  VAR __DS0Core = 
    SUMMARIZECOLUMNS(
      ROLLUPADDISSUBTOTAL(
        ROLLUPGROUP(
          'Planted Crop'[CropYear],
          'Planted Crop'[Farm],
          'Planted Crop'[Variety],
          'Planted Crop'[Field]
        ), "IsGrandTotalRowTotal"
      ),
      __DS0FilterTable5,
      "Target_Seed_Spacing", 'Planter Evaluation'[Target Seed Spacing],
      "Projected_Spacing", 'Planter Evaluation'[Projected Spacing],
      "Spacing____", 'Planter Evaluation'[Spacing +/-],
      "Target_Plant_Population", 'Planter Evaluation'[Target Plant Population],
      "Projected_Plant_Population", 'Planter Evaluation'[Projected Plant Population],
      "Plant_Population_Observed_vs__Target", 'Planter Evaluation'[Plant Population Observed vs. Target],
      "Ideal_Seed_Placement__", 'Planter Evaluation'[Ideal Seed Placement %],
      "Double_Seed_Placement__", 'Planter Evaluation'[Double Seed Placement %],
      "Skip_Seed_Placement__", 'Planter Evaluation'[Skip Seed Placement %],
      "Exact_Seed_Placement__", 'Planter Evaluation'[Exact Seed Placement %]
    )

  VAR __DS0PrimaryWindowed = 
    TOPN(
      502,
      __DS0Core,
      [IsGrandTotalRowTotal],
      0,
      'Planted Crop'[CropYear],
      1,
      'Planted Crop'[Farm],
      1,
      'Planted Crop'[Variety],
      1,
      'Planted Crop'[Field],
      1
    )

EVALUATE
	FILTER(__DS0PrimaryWindowed, 'Planted Crop'[CropYear] &amp;gt;2000)

ORDER BY
  [IsGrandTotalRowTotal] DESC,
  'Planted Crop'[CropYear],
  'Planted Crop'[Farm],
  'Planted Crop'[Variety],
  'Planted Crop'[Field]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2021 16:53:43 GMT</pubDate>
    <dc:creator>dsandberg</dc:creator>
    <dc:date>2021-04-15T16:53:43Z</dc:date>
    <item>
      <title>Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/912611#M12785</link>
      <description>&lt;P&gt;Hi - I'm building my first report in Power BI Report Builder and followed instructions to copy my query from Performance Analyzer.&amp;nbsp; The query works as expected and it' s a huge time saver to copy it from my Power BI report.&amp;nbsp; The difficulty that I have is building&amp;nbsp; parameterd off the copied query.&amp;nbsp; I can't figure out how to edit the query to allow for a parameter on "Season" or "Brand".&amp;nbsp; Where/how would I make those edits in my query?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 00:30:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/912611#M12785</guid>
      <dc:creator>jgray72</dc:creator>
      <dc:date>2023-01-19T00:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/914328#M12797</link>
      <description>&lt;P&gt;Experiment with the DAX query editor by adding removing parameters. This looks like a reasonable article:&amp;nbsp;&lt;A href="https://www.mssqltips.com/sqlservertip/5865/sql-server-reporting-services-report-builder-with-dax-query-support/" target="_blank"&gt;https://www.mssqltips.com/sqlservertip/5865/sql-server-reporting-services-report-builder-with-dax-query-support/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 00:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/914328#M12797</guid>
      <dc:creator>bradsy</dc:creator>
      <dc:date>2020-01-29T00:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/915364#M12811</link>
      <description>&lt;P&gt;Hi - I had found that article as well, but I can't nail down the syntax to add the parameters in the DAX query.&amp;nbsp; This is what I just tried and it's incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/915364#M12811</guid>
      <dc:creator>jgray72</dc:creator>
      <dc:date>2020-01-29T16:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/915377#M12813</link>
      <description>&lt;P&gt;I've also tried playing around with the&amp;nbsp;@, but it won't work either.&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;JG&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 16:58:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/915377#M12813</guid>
      <dc:creator>jgray72</dc:creator>
      <dc:date>2020-01-29T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1364656#M15963</link>
      <description>&lt;P&gt;Great article!&amp;nbsp; This will be a big help!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 14:09:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1364656#M15963</guid>
      <dc:creator>Daviejoe</dc:creator>
      <dc:date>2020-09-11T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1374055#M16015</link>
      <description>&lt;P&gt;So one way to do this is to add a filter to your visual in Power BI for the Brand and Season. This will add an "_DS0FilterXXX" variable to your query and inject it into the appropriate place in the SUMMARIZECOLUMNS expression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you set a Brand filter of "XYZ" and a season filter of "Winter" the you would just need to find these two strings in the query you copy from the Performance Analyzer and then replace the hard coded values with a reference to&amp;nbsp;@Brand and&amp;nbsp;@Season (or you could use the Parameters!Brand.Value string expression approach)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 06:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1374055#M16015</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2020-09-16T06:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1642651#M17906</link>
      <description>&lt;P&gt;Hi - I am kind of in the similar scenario copying the query generated from Performance Analyzer. However it is restricting the number of records to 501 (TOPN function). When I delete it, I get an error Query Preparation Failed - The end of the input was reached(Microsoft Analysis Services). What am I doing icorrectly here? Am I deleting more than what should be deleted? If so please point out what has to be removed from the query below so it fetches all the existing records.&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;Query copied from Performance Analyzer. I have deleted the entire TOPN function (colored in red).&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&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;'Query1'[Invoice_Complete],&lt;BR /&gt;'Query1'[Invoiced_Quantity],&lt;BR /&gt;'Query1'[Staples_order_no],&lt;BR /&gt;'Query1'[Staples_return_order_no],&lt;BR /&gt;'Query1'[return_status_description],&lt;BR /&gt;'Query1'[customer_name],&lt;BR /&gt;'Query1'[External_Document_No],&lt;BR /&gt;'Query1'[Our_Item_No],&lt;BR /&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;BR /&gt;'Query1'[Return_Node],&lt;BR /&gt;'Query1'[Create_date],&lt;BR /&gt;'Query1'[return_create_date],&lt;BR /&gt;'Query1'[return_date_plus18days],&lt;BR /&gt;'Query1'[Open_days],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day],&lt;BR /&gt;"CountRowsQuery1", CALCULATE(COUNTROWS('Query1'))&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;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;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;NOT(ISBLANK('Query1'[Invoice_Complete])),&lt;BR /&gt;NOT(ISBLANK('Query1'[Invoiced_Quantity]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Staples_order_no]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Staples_return_order_no]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_status_description]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[customer_name]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[External_Document_No]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Our_Item_No]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[EXTERNAL_ITEM_NO]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Return_Node]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Create_date]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_create_date]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_date_plus18days]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Open_days]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"'Query1'[Invoice_Complete]", 'Query1'[Invoice_Complete],&lt;BR /&gt;"'Query1'[Invoiced_Quantity]", 'Query1'[Invoiced_Quantity],&lt;BR /&gt;"'Query1'[Staples_order_no]", 'Query1'[Staples_order_no],&lt;BR /&gt;"'Query1'[Staples_return_order_no]", 'Query1'[Staples_return_order_no],&lt;BR /&gt;"'Query1'[return_status_description]", 'Query1'[return_status_description],&lt;BR /&gt;"'Query1'[customer_name]", 'Query1'[customer_name],&lt;BR /&gt;"'Query1'[External_Document_No]", 'Query1'[External_Document_No],&lt;BR /&gt;"'Query1'[Our_Item_No]", 'Query1'[Our_Item_No],&lt;BR /&gt;"'Query1'[EXTERNAL_ITEM_NO]", 'Query1'[EXTERNAL_ITEM_NO],&lt;BR /&gt;"'Query1'[Return_Node]", 'Query1'[Return_Node],&lt;BR /&gt;"'Query1'[Create_date]", 'Query1'[Create_date],&lt;BR /&gt;"'Query1'[return_create_date]", 'Query1'[return_create_date],&lt;BR /&gt;"'Query1'[return_date_plus18days]", 'Query1'[return_date_plus18days],&lt;BR /&gt;"'Query1'[Open_days]", 'Query1'[Open_days],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;VAR __DS0PrimaryWindowed = &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;TOPN(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;501,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;__DS0Core,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[External_Document_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoice_Complete],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoiced_Quantity],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_return_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_status_description],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[customer_name],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Our_Item_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Return_Node],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_date_plus18days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Open_days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;EVALUATE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;__DS0PrimaryWindowed&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ORDER BY&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[External_Document_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoice_Complete],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoiced_Quantity],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_return_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_status_description],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[customer_name],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Our_Item_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Return_Node],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_date_plus18days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Open_days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 16:41:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1642651#M17906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1643139#M17917</link>
      <description>&lt;P&gt;You have deleted much more than just the TOPN function making the query invalid. I've highlighted in red below what should be deleted in order to remove just the TOPN restriction.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&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;'Query1'[Invoice_Complete],&lt;BR /&gt;'Query1'[Invoiced_Quantity],&lt;BR /&gt;'Query1'[Staples_order_no],&lt;BR /&gt;'Query1'[Staples_return_order_no],&lt;BR /&gt;'Query1'[return_status_description],&lt;BR /&gt;'Query1'[customer_name],&lt;BR /&gt;'Query1'[External_Document_No],&lt;BR /&gt;'Query1'[Our_Item_No],&lt;BR /&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;BR /&gt;'Query1'[Return_Node],&lt;BR /&gt;'Query1'[Create_date],&lt;BR /&gt;'Query1'[return_create_date],&lt;BR /&gt;'Query1'[return_date_plus18days],&lt;BR /&gt;'Query1'[Open_days],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;BR /&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day],&lt;BR /&gt;"CountRowsQuery1", CALCULATE(COUNTROWS('Query1'))&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;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;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;OR(&lt;BR /&gt;NOT(ISBLANK('Query1'[Invoice_Complete])),&lt;BR /&gt;NOT(ISBLANK('Query1'[Invoiced_Quantity]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Staples_order_no]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Staples_return_order_no]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_status_description]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[customer_name]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[External_Document_No]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Our_Item_No]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[EXTERNAL_ITEM_NO]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Return_Node]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Create_date]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_create_date]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[return_date_plus18days]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('Query1'[Open_days]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo]))&lt;BR /&gt;),&lt;BR /&gt;NOT(ISBLANK('LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"'Query1'[Invoice_Complete]", 'Query1'[Invoice_Complete],&lt;BR /&gt;"'Query1'[Invoiced_Quantity]", 'Query1'[Invoiced_Quantity],&lt;BR /&gt;"'Query1'[Staples_order_no]", 'Query1'[Staples_order_no],&lt;BR /&gt;"'Query1'[Staples_return_order_no]", 'Query1'[Staples_return_order_no],&lt;BR /&gt;"'Query1'[return_status_description]", 'Query1'[return_status_description],&lt;BR /&gt;"'Query1'[customer_name]", 'Query1'[customer_name],&lt;BR /&gt;"'Query1'[External_Document_No]", 'Query1'[External_Document_No],&lt;BR /&gt;"'Query1'[Our_Item_No]", 'Query1'[Our_Item_No],&lt;BR /&gt;"'Query1'[EXTERNAL_ITEM_NO]", 'Query1'[EXTERNAL_ITEM_NO],&lt;BR /&gt;"'Query1'[Return_Node]", 'Query1'[Return_Node],&lt;BR /&gt;"'Query1'[Create_date]", 'Query1'[Create_date],&lt;BR /&gt;"'Query1'[return_create_date]", 'Query1'[return_create_date],&lt;BR /&gt;"'Query1'[return_date_plus18days]", 'Query1'[return_date_plus18days],&lt;BR /&gt;"'Query1'[Open_days]", 'Query1'[Open_days],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;BR /&gt;"'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]", 'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;VAR __DS0PrimaryWindowed =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;TOPN(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;501,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;__DS0Core&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[External_Document_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoice_Complete],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Invoiced_Quantity],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Staples_return_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_status_description],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[customer_name],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Our_Item_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Return_Node],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[return_date_plus18days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'Query1'[Open_days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;EVALUATE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;__DS0PrimaryWindowed&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;ORDER BY&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[External_Document_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Invoice_Complete],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Invoiced_Quantity],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Staples_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Staples_return_order_no],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[return_status_description],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[customer_name],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Our_Item_No],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[EXTERNAL_ITEM_NO],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Return_Node],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[return_create_date],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[return_date_plus18days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'Query1'[Open_days],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Year],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[QuarterNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Quarter],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[MonthNo],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Month],&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;'LocalDateTable_fd4ab7aa-4e0a-4c2f-baeb-1a0197162a03'[Day]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 21:40:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1643139#M17917</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2021-02-03T21:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1643358#M17918</link>
      <description>&lt;P&gt;Thankyou d_gosbell!!!It works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 23:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1643358#M17918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-03T23:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1787535#M18896</link>
      <description>&lt;P&gt;Hi folks... I was able to get parameters to work a variable like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; __DS0FilterTable5 =&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;{&lt;SPAN&gt;@paramCropYear&lt;/SPAN&gt;}, &lt;SPAN&gt;'Planted Crop'[CropYear]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&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;DEFINE
 VAR__DS0FilterTable5 = 
    TREATAS({@paramCropYear}, 'Planted Crop'[CropYear])

  VAR __DS0Core = 
    SUMMARIZECOLUMNS(
      ROLLUPADDISSUBTOTAL(
        ROLLUPGROUP(
          'Planted Crop'[CropYear],
          'Planted Crop'[Farm],
          'Planted Crop'[Variety],
          'Planted Crop'[Field]
        ), "IsGrandTotalRowTotal"
      ),
      __DS0FilterTable5,
      "Target_Seed_Spacing", 'Planter Evaluation'[Target Seed Spacing],
      "Projected_Spacing", 'Planter Evaluation'[Projected Spacing],
      "Spacing____", 'Planter Evaluation'[Spacing +/-],
      "Target_Plant_Population", 'Planter Evaluation'[Target Plant Population],
      "Projected_Plant_Population", 'Planter Evaluation'[Projected Plant Population],
      "Plant_Population_Observed_vs__Target", 'Planter Evaluation'[Plant Population Observed vs. Target],
      "Ideal_Seed_Placement__", 'Planter Evaluation'[Ideal Seed Placement %],
      "Double_Seed_Placement__", 'Planter Evaluation'[Double Seed Placement %],
      "Skip_Seed_Placement__", 'Planter Evaluation'[Skip Seed Placement %],
      "Exact_Seed_Placement__", 'Planter Evaluation'[Exact Seed Placement %]
    )

  VAR __DS0PrimaryWindowed = 
    TOPN(
      502,
      __DS0Core,
      [IsGrandTotalRowTotal],
      0,
      'Planted Crop'[CropYear],
      1,
      'Planted Crop'[Farm],
      1,
      'Planted Crop'[Variety],
      1,
      'Planted Crop'[Field],
      1
    )

EVALUATE
	FILTER(__DS0PrimaryWindowed, 'Planted Crop'[CropYear] &amp;gt;2000)

ORDER BY
  [IsGrandTotalRowTotal] DESC,
  'Planted Crop'[CropYear],
  'Planted Crop'[Farm],
  'Planted Crop'[Variety],
  'Planted Crop'[Field]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 16:53:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1787535#M18896</guid>
      <dc:creator>dsandberg</dc:creator>
      <dc:date>2021-04-15T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1996068#M20399</link>
      <description>&lt;P&gt;When I try changing the "APR-21" to&amp;nbsp;@YearMonth, I get a message saying the parameter is not declared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;FONT size="3"&gt;VAR __DS0FilterTable3 =&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="3"&gt;TREATAS({"APR-21"}, 'Period'[GL Period])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 19:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1996068#M20399</guid>
      <dc:creator>Jdokken</dc:creator>
      <dc:date>2021-08-03T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1998362#M20413</link>
      <description>&lt;P&gt;When I receive this error, I have to add the query parameters here in the Query Designer, then that error about it being declared goes away.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 17:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1998362#M20413</guid>
      <dc:creator>blynchdata</dc:creator>
      <dc:date>2021-08-04T17:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1998602#M20418</link>
      <description>&lt;P&gt;How did you write it into the query?&amp;nbsp; As a Variable like this?&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;STRONG&gt;VAR __DS0FilterTable3 =&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;STRONG&gt;TREATAS({"@YearMonth&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;STRONG&gt;"}, 'Period'[GL Period])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;STRONG&gt;Here's my full DAX Query from Power BI's Performance Analyzer.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&gt;MEASURE 'Internal Financial Metrics'[-Mgn R&amp;amp;O Filter] =&lt;BR /&gt;(/* USER DAX BEGIN */&lt;BR /&gt;IF(&lt;BR /&gt;([CY R&amp;amp;O] = 0 || [CY R&amp;amp;O]= BLANK()) &amp;amp;&amp;amp;&lt;BR /&gt;([NY R&amp;amp;O] = 0 || [NY R&amp;amp;O]= BLANK()) &amp;amp;&amp;amp;&lt;BR /&gt;([FY R&amp;amp;O] = 0 || [FY R&amp;amp;O]= BLANK()),&lt;BR /&gt;"Don't Include", "Include")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* USER DAX END */)&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(VALUES('Internal Financial Attributes'[Project Status - Reporting])),&lt;BR /&gt;NOT('Internal Financial Attributes'[Project Status - Reporting] = "IATP")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable2 =&lt;BR /&gt;TREATAS({"Y"}, 'Reporting Filters'[Filter for Teaming View])&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;VAR __DS0FilterTable3 =&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;TREATAS({"MAY-21"}, 'Period'[GL Period])&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable4 =&lt;BR /&gt;TREATAS({"Thousands"}, 'Reporting Multiples'[Reporting Units])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VAR __ValueFilterDM1 =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'Internal Financial Attributes'[Group Name],&lt;BR /&gt;'Internal Financial Attributes'[GROUPSORTORDER],&lt;BR /&gt;'Project'[Project Name],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;__DS0FilterTable2,&lt;BR /&gt;__DS0FilterTable3,&lt;BR /&gt;__DS0FilterTable4,&lt;BR /&gt;"ATD___Complete", 'Internal Financial Metrics'[ATD % Complete],&lt;BR /&gt;"CY_R_O", 'Internal Financial Metrics'[CY R&amp;amp;O],&lt;BR /&gt;"NY_R_O", 'Internal Financial Metrics'[NY R&amp;amp;O],&lt;BR /&gt;"FY_R_O", 'Internal Financial Metrics'[FY R&amp;amp;O],&lt;BR /&gt;"Total_R_O", 'Internal Financial Metrics'[Total R&amp;amp;O],&lt;BR /&gt;"Cash_Position", 'Internal Financial Metrics'[Cash Position],&lt;BR /&gt;"R_O___Group_Margin_Fcst", 'Internal Financial Metrics'[R&amp;amp;O + Group Margin Fcst],&lt;BR /&gt;"MinRisk___Opportunities_Comments", CALCULATE(MIN('Internal Financial Attributes'[Risk &amp;amp; Opportunities Comments])),&lt;BR /&gt;"-Mgn R&amp;amp;O Filter", IGNORE('Internal Financial Metrics'[-Mgn R&amp;amp;O Filter])&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;[-Mgn R&amp;amp;O Filter] = "Include"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;EVALUATE&lt;BR /&gt;__ValueFilterDM1&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, 04 Aug 2021 21:42:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/1998602#M20418</guid>
      <dc:creator>Jdokken</dc:creator>
      <dc:date>2021-08-04T21:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2033899#M20666</link>
      <description>&lt;P&gt;Hi d_gospel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below Query runs on DAX Studio, But returns no rows found in Report Builder.&lt;/P&gt;&lt;P&gt;I am passing the report Parameters&amp;nbsp;@Location and @Date as the query parameters&lt;/P&gt;&lt;P&gt;What am I Possibly not doing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&gt;VAR __DS0FilterTable =&lt;BR /&gt;TREATAS({@Location}, 'CSLOCATION'[Location])&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable2 =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(VALUES('Date Dim'[Date])), 'Date Dim'[YYYY/MM]= @Date)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'CSPDETAILS'[Criteria],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;__DS0FilterTable2,&lt;BR /&gt;"Score", 'RM'[Score],&lt;BR /&gt;"Result", IGNORE('RM'[Result]),&lt;BR /&gt;"Color", IGNORE('RM'[Color])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0PrimaryWindowed =&lt;BR /&gt;TOPN(1001, __DS0Core, [Score], 0, 'CSPDETAILS'[Criteria], 1)&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;__DS0PrimaryWindowed&lt;/P&gt;&lt;P&gt;ORDER BY&lt;BR /&gt;[Score] DESC, 'CSPDETAILS'[Criteria]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 05:11:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2033899#M20666</guid>
      <dc:creator>ugoriuko</dc:creator>
      <dc:date>2021-08-24T05:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2033955#M20668</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="321667" data-lia-user-login="ugoriuko" class="lia-mention lia-mention-user"&gt;ugoriuko&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The below Query runs on DAX Studio, But returns no rows found in Report Builder.&lt;/P&gt;
&lt;P&gt;I am passing the report Parameters&amp;nbsp;@Location and @Date as the query parameters&lt;/P&gt;
&lt;P&gt;What am I Possibly not doing?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can't see how it could run in DAX Studio since your expression for&amp;nbsp;&lt;SPAN&gt;__DS0FilterTable2 is not valid. It includes an extra unmatched closing parathesis and you can't filter using the [YYYY/MM] column when the table you are filtering only contains the values from the [Date] column.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you can run an All Queries trace against your data source you should be able to capture the full query including the parameter XML block when you run from Report Builder, then you should be able to see what values Report Builder is passing through. Maybe there is some extra formatting happening somewhere and the parameters values are being passed differently to what you expected.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 05:59:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2033955#M20668</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2021-08-24T05:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2041863#M20716</link>
      <description>&lt;P&gt;Thanks for the feedback. I actually have that properly setup as&lt;/P&gt;&lt;P&gt;// DAX Query&lt;BR /&gt;DEFINE&lt;BR /&gt;VAR __DS0FilterTable =&lt;BR /&gt;TREATAS({@Location}, 'CSLOCATION'[Location])&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable2 =&lt;BR /&gt;FILTER(&lt;BR /&gt;KEEPFILTERS(VALUES('Date Dim'[YYYY/MM])), 'Date Dim'[YYYY/MM]= @Date)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;'CSPDETAILS'[Criteria],&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;__DS0FilterTable2,&lt;BR /&gt;"Score", 'RM'[Score],&lt;BR /&gt;"Result", IGNORE('RM'[Result]),&lt;BR /&gt;"Color", IGNORE('RM'[Color])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR __DS0PrimaryWindowed =&lt;BR /&gt;TOPN(1001, __DS0Core, [Score], 0, 'CSPDETAILS'[Criteria], 1)&lt;/P&gt;&lt;P&gt;EVALUATE&lt;BR /&gt;__DS0PrimaryWindowed&lt;/P&gt;&lt;P&gt;ORDER BY&lt;BR /&gt;[Score] DESC, 'CSPDETAILS'[Criteria]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must have pasted something else from my clipboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by extra formatting?&lt;BR /&gt;I am new to report builder and have no idea what is going on.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 04:39:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2041863#M20716</guid>
      <dc:creator>ugoriuko</dc:creator>
      <dc:date>2021-08-27T04:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters in Report Builder (DAX query copied from Performance Analyzer)</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2041891#M20718</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="321667" data-lia-user-login="ugoriuko" class="lia-mention lia-mention-user"&gt;ugoriuko&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What do you mean by extra formatting?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So if your&amp;nbsp;@date parameter is setup as a datetime data type you might find it is actually sending through the data in a format something like "dd/mm/yyyy" instead of "yyyy/mm". If you use the All Queries trace in DAX Studio or if you use SQL Profiler and capture the BeginQuery event you will be able to see the values the parameters is passing through.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other trick I've used sometimes is to temporarily put text boxes on my report linked to the parameters so that I can see the parameter values being passed through that way.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 05:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Parameters-in-Report-Builder-DAX-query-copied-from-Performance/m-p/2041891#M20718</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2021-08-27T05:07:08Z</dc:date>
    </item>
  </channel>
</rss>

