<?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 Show “null” or replace with a value in a field in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247310#M4003</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;I am in the process of discovering DQL but I am encountering a rather serious problem: I have several filters for a table in my dashboard which are populated with the values ​​of the table. This part works fine but one of my columns may have "null" values. And in my filter, this is not seen, and biases my results.&lt;/P&gt;
&lt;P&gt;In the screen below, you can see that I use several filters, with success, but the "Management_Zones" filter does not show all the possibilities because of the "nulls" that may be found there. I did the calculation with and without filter and the difference is significant :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_0-1717487686257.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20308iE70AF0713B40D07D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_0-1717487686257.png" alt="Red_0-1717487686257.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question is the following: how can we force "nulls" to be named in a specific column? I looked for several solutions but all the ones I tested didn't work.&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Red&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 06:20:13 GMT</pubDate>
    <dc:creator>Red</dc:creator>
    <dc:date>2024-06-05T06:20:13Z</dc:date>
    <item>
      <title>Show “null” or replace with a value in a field</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247310#M4003</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;I am in the process of discovering DQL but I am encountering a rather serious problem: I have several filters for a table in my dashboard which are populated with the values ​​of the table. This part works fine but one of my columns may have "null" values. And in my filter, this is not seen, and biases my results.&lt;/P&gt;
&lt;P&gt;In the screen below, you can see that I use several filters, with success, but the "Management_Zones" filter does not show all the possibilities because of the "nulls" that may be found there. I did the calculation with and without filter and the difference is significant :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Red_0-1717487686257.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20308iE70AF0713B40D07D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Red_0-1717487686257.png" alt="Red_0-1717487686257.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My question is the following: how can we force "nulls" to be named in a specific column? I looked for several solutions but all the ones I tested didn't work.&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 06:20:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247310#M4003</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2024-06-05T06:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show “null” or replace with a value in a field</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247382#M4005</link>
      <description>&lt;P&gt;Hey Red! (I'm team Poke Yellow way back in the day)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My recommendation to force a value is by using expressions to replace null with "some value", in the below example, this DQL expressions updates the field "managementZones" with the value "No_MZ", if the current value is null.&lt;/P&gt;&lt;P&gt;This will need to be updated within your variable definitions within your dashboard and within your tiles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;| fieldsAdd managementZones = if(isNull(managementZones), "No_MZ", else:managementZones)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Full example:&lt;/P&gt;&lt;P&gt;Variable Definitions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;fetch dt.entity.host
| fieldsAdd monitoringMode, osType, osVersion, hostGroupName, managementZones
| summarize takeLast(id), by: {managementZones}
| fields values = managementZones
| fieldsAdd values = if(isNull(values), "No_MZ", else:values)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tiles:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;fetch dt.entity.host
| fieldsAdd monitoringMode, osType, osVersion, hostGroupName, managementZones
| fieldsAdd managementZones = if(isNull(managementZones), "No_MZ", else:managementZones)
| filter in(managementZones,$ManagementZone)
| summarize count = count()&lt;/LI-CODE&gt;&lt;P&gt;Result when we select all MZ's and also select "No_MZs":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joeistyping_0-1717535390469.png" style="width: 875px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20319i282658D95B3C1A8B/image-dimensions/875x491?v=v2" width="875" height="491" role="button" title="joeistyping_0-1717535390469.png" alt="joeistyping_0-1717535390469.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 21:18:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247382#M4005</guid>
      <dc:creator>joeistyping</dc:creator>
      <dc:date>2024-06-04T21:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show “null” or replace with a value in a field</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247681#M4013</link>
      <description>&lt;P&gt;Hi joeistyping (good choice on the Yellow team ^^)&lt;/P&gt;&lt;P&gt;I just came back from leave and I tested your method, it works perfectly!&lt;/P&gt;&lt;P&gt;Thank you very much for your help !&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 12:26:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Show-null-or-replace-with-a-value-in-a-field/m-p/247681#M4013</guid>
      <dc:creator>Red</dc:creator>
      <dc:date>2024-06-07T12:26:13Z</dc:date>
    </item>
  </channel>
</rss>

