<?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:  (Null) values in query designer when [] brackets in column name in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4025814#M35804</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="701085" data-lia-user-login="SCWO" class="lia-mention lia-mention-user"&gt;SCWO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem you are experiencing is that when connecting to the Power BI semantic model, the column names contain square brackets ( [ ]), causing (NULL) values to appear in Report Builder, which may be due to the way the Query Designer handles special characters in column names. Here are a few ways to resolve this issue:&lt;/P&gt;&lt;P&gt;Adding Aliases to Columns in a DAX Query&lt;BR /&gt;You can add aliases to columns in a DAX query to avoid the use of square brackets. The following is an example of how to add an alias to a column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE 
SUMMARIZECOLUMNS(
    'fctEnergy'[Datum], 
    'fctEnergy'[Abriss [0/1]] AS Abriss,
    'fctEnergy'[Einspeisung Gasturbine] AS Einspeisung_Gasturbine,
    'fctEnergy'[Einspeisung K 07 [kW]] AS Einspeisung_K07_kW
)&lt;/LI-CODE&gt;&lt;P&gt;If possible, you can rename the columns in Power BI Desktop to remove the square brackets and then publish the updated model. This method ensures that all downstream users and tools that reference these columns do not encounter issues.&lt;/P&gt;&lt;P&gt;In Report Builder, you can create datasets with custom queries and rename columns within them. Here is how to define a query directly in Report Builder:&lt;BR /&gt;In Report Builder, go to Dataset Properties.&lt;BR /&gt;Select Query Designer and switch to Edit as Text mode.&lt;BR /&gt;Write a custom DAX query with aliased column names, similar to the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE 
SUMMARIZECOLUMNS(
    'fctEnergy'[Datum], 
    'fctEnergy'[Abriss [0/1]] AS Abriss,
    'fctEnergy'[Einspeisung Gasturbine] AS Einspeisung_Gasturbine,
    'fctEnergy'[Einspeisung K 07 [kW]] AS Einspeisung_K07_kW
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hackcrr&lt;/P&gt;&lt;P&gt;If this post helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 00:05:16 GMT</pubDate>
    <dc:creator>hackcrr</dc:creator>
    <dc:date>2024-07-05T00:05:16Z</dc:date>
    <item>
      <title>Report builder:  (Null) values in query designer when [] brackets in column name</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4024792#M35786</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to build a report with the report builder, connected to a PowerBi semantic model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realized, that when i try to add a dataset, some of my data values are shown as (Null) values. That happens with all data, when the column name contains [ ] brackets. (see image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Does anyone know, how I have to change the query, so that the column and its values can be found?&lt;/P&gt;&lt;P&gt;Or is there any other solution that it will work and I can keep the [] brackets in the column name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:39:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4024792#M35786</guid>
      <dc:creator>SCWO</dc:creator>
      <dc:date>2024-07-04T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Report builder:  (Null) values in query designer when [] brackets in column name</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4025814#M35804</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="701085" data-lia-user-login="SCWO" class="lia-mention lia-mention-user"&gt;SCWO&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem you are experiencing is that when connecting to the Power BI semantic model, the column names contain square brackets ( [ ]), causing (NULL) values to appear in Report Builder, which may be due to the way the Query Designer handles special characters in column names. Here are a few ways to resolve this issue:&lt;/P&gt;&lt;P&gt;Adding Aliases to Columns in a DAX Query&lt;BR /&gt;You can add aliases to columns in a DAX query to avoid the use of square brackets. The following is an example of how to add an alias to a column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE 
SUMMARIZECOLUMNS(
    'fctEnergy'[Datum], 
    'fctEnergy'[Abriss [0/1]] AS Abriss,
    'fctEnergy'[Einspeisung Gasturbine] AS Einspeisung_Gasturbine,
    'fctEnergy'[Einspeisung K 07 [kW]] AS Einspeisung_K07_kW
)&lt;/LI-CODE&gt;&lt;P&gt;If possible, you can rename the columns in Power BI Desktop to remove the square brackets and then publish the updated model. This method ensures that all downstream users and tools that reference these columns do not encounter issues.&lt;/P&gt;&lt;P&gt;In Report Builder, you can create datasets with custom queries and rename columns within them. Here is how to define a query directly in Report Builder:&lt;BR /&gt;In Report Builder, go to Dataset Properties.&lt;BR /&gt;Select Query Designer and switch to Edit as Text mode.&lt;BR /&gt;Write a custom DAX query with aliased column names, similar to the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE 
SUMMARIZECOLUMNS(
    'fctEnergy'[Datum], 
    'fctEnergy'[Abriss [0/1]] AS Abriss,
    'fctEnergy'[Einspeisung Gasturbine] AS Einspeisung_Gasturbine,
    'fctEnergy'[Einspeisung K 07 [kW]] AS Einspeisung_K07_kW
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hackcrr&lt;/P&gt;&lt;P&gt;If this post helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 00:05:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4025814#M35804</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-07-05T00:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report builder:  (Null) values in query designer when [] brackets in column name</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4026223#M35810</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740391" data-lia-user-login="hackcrr" class="lia-mention lia-mention-user"&gt;hackcrr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much! That's my solution!&lt;/P&gt;&lt;P&gt;Great response, perfectly explained.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 05:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4026223#M35810</guid>
      <dc:creator>SCWO</dc:creator>
      <dc:date>2024-07-05T05:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Report builder:  (Null) values in query designer when [] brackets in column name</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4033305#M35888</link>
      <description>&lt;P&gt;Note that you can also "fix" this by right clicking on the field and going into Field properties&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And they you'll see that the Query Builder has inserted an extra closing square bracket ] - if you remove this the field should start working&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, 10 Jul 2024 00:09:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Report-builder-Null-values-in-query-designer-when-brackets-in/m-p/4033305#M35888</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2024-07-10T00:09:35Z</dc:date>
    </item>
  </channel>
</rss>

