<?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: Dataset query error in report builder in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053636#M28652</link>
    <description>&lt;P&gt;The error you're encountering might be due to a syntax error in the DAX code. It looks like there's an extra parenthesis at the end of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 19:51:28 GMT</pubDate>
    <dc:creator>Sahir_Maharaj</dc:creator>
    <dc:date>2023-01-31T19:51:28Z</dc:date>
    <item>
      <title>Dataset query error in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3051990#M28617</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using report builder to connect to a power BI dataset. when I use the following DAX query, then it throws an error. does anyone know how to fix it?&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;EVALUATE
VAR a = 
        SUMMARIZECOLUMNS (
            'table1'[id],
            'table2'[cid],
            RSCustomDaxFilter(@CDate,EqualToCondition,[CycleDate].[Date],DateTime),
            "MTD Sub ANP", [MTD Sub ANP],
            "Flag", 0,
            "Order",FORMAT(VALUE(MAX('CHANNEL'[Order])) , "#00.0")
        )

VAR b = 
        SUMMARIZECOLUMNS (
            'table1'[type_id],
            'table2'[cid],
            RSCustomDaxFilter(@CDate,EqualToCondition,[CycleDate].[Date],DateTime),
            "MTD Sub ANP", [MTD Sub ANP],
            "Flag", 0,
            "Order",FORMAT(4.5 , "#00.0"),   
            FILTER(CHANNEL , CHANNEL[ID] in {5,6}))
）
return
UNION(a,b)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 07:59:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3051990#M28617</guid>
      <dc:creator>Addams_Katherin</dc:creator>
      <dc:date>2023-01-31T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset query error in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3052118#M28619</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some suggestions to help resolve the issue:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Ensure that the columns in the 'table1' and 'table2' referenced in the DAX query exist and are spelled correctly.&lt;/LI&gt;&lt;LI&gt;Verify that the RSCustomDaxFilter function is defined and its arguments are correct.&lt;/LI&gt;&lt;LI&gt;Ensure that the &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="34231" data-lia-user-login="cdate" class="lia-mention lia-mention-user"&gt;cdate&lt;/a&gt; variable is defined and its value is valid.&lt;/LI&gt;&lt;LI&gt;Ensure that the EqualToCondition in the RSCustomDaxFilter function is spelled correctly and used correctly.&lt;/LI&gt;&lt;LI&gt;Check that the [CycleDate].[Date] and DateTime used in the RSCustomDaxFilter function are defined and match the data type of the referenced data.&lt;/LI&gt;&lt;LI&gt;Check the syntax of the UNION function, making sure that the number and type of columns in each of the input tables (a and b) match.&lt;/LI&gt;&lt;LI&gt;Verify that the CHANNEL table used in the FILTER function is defined and its columns (e.g. ID) exist and are spelled correctly.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Can you please share some examples of data? can you put the error that you get?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 08:58:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3052118#M28619</guid>
      <dc:creator>jaweher899</dc:creator>
      <dc:date>2023-01-31T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset query error in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053636#M28652</link>
      <description>&lt;P&gt;The error you're encountering might be due to a syntax error in the DAX code. It looks like there's an extra parenthesis at the end of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 19:51:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053636#M28652</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-01-31T19:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset query error in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053637#M28653</link>
      <description>&lt;P&gt;Here's the corrected code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE
VAR a =
SUMMARIZECOLUMNS (
'table1'[id],
'table2'[cid],
RSCustomDaxFilter(@CDate,EqualToCondition,[CycleDate].[Date],DateTime),
"MTD Sub ANP", [MTD Sub ANP],
"Flag", 0,
"Order",FORMAT(VALUE(MAX('CHANNEL'[Order])), "#00.0")
)

VAR b =
SUMMARIZECOLUMNS (
'table1'[type_id],
'table2'[cid],
RSCustomDaxFilter(@CDate,EqualToCondition,[CycleDate].[Date],DateTime),
"MTD Sub ANP", [MTD Sub ANP],
"Flag", 0,
"Order",FORMAT(4.5 , "#00.0"),
FILTER(CHANNEL , CHANNEL[ID] in {5,6})
)
return
UNION(a,b)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 19:52:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053637#M28653</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-01-31T19:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset query error in report builder</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053639#M28654</link>
      <description>&lt;P&gt;If the error still persists, please provide more details about the error message so I can try to help you better.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If my response(s) assisted you in any way, don't forget to drop me a "Kudos" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&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;</description>
      <pubDate>Tue, 31 Jan 2023 19:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Dataset-query-error-in-report-builder/m-p/3053639#M28654</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2023-01-31T19:52:44Z</dc:date>
    </item>
  </channel>
</rss>

