<?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 Input dash with text when variable is null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679493#M449959</link>
    <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on a dashboard where I want to input a dash ( - ) when a value is null. Usually this is a default for Qlikview, but within my expression I combine the value with a label as pictured below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toggle3.PNG" style="width: 606px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29134iBE3E1CE3DAD087F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="toggle3.PNG" alt="toggle3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The end goal is to have ' - days' instead of just days appear. I also want to avoid placing a zero in front of the days when a value is null because it can be misleading to end users because zero days is different than the null value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I am using the following expression to calculate the numbers within the pivot chart. There is a toggle for the pivot chart to show different values, hence the combined if statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(ShowID_US1='d',Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'##.0') &amp;amp; ' days',&lt;BR /&gt;if(ShowID_US1='h',Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'#,##0') &amp;amp; ' hours'))&lt;/P&gt;&lt;P&gt;I appreciate any help! Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:11:03 GMT</pubDate>
    <dc:creator>rtr13</dc:creator>
    <dc:date>2024-11-16T01:11:03Z</dc:date>
    <item>
      <title>Input dash with text when variable is null</title>
      <link>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679493#M449959</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on a dashboard where I want to input a dash ( - ) when a value is null. Usually this is a default for Qlikview, but within my expression I combine the value with a label as pictured below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toggle3.PNG" style="width: 606px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29134iBE3E1CE3DAD087F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="toggle3.PNG" alt="toggle3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The end goal is to have ' - days' instead of just days appear. I also want to avoid placing a zero in front of the days when a value is null because it can be misleading to end users because zero days is different than the null value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I am using the following expression to calculate the numbers within the pivot chart. There is a toggle for the pivot chart to show different values, hence the combined if statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(ShowID_US1='d',Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'##.0') &amp;amp; ' days',&lt;BR /&gt;if(ShowID_US1='h',Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'#,##0') &amp;amp; ' hours'))&lt;/P&gt;&lt;P&gt;I appreciate any help! Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679493#M449959</guid>
      <dc:creator>rtr13</dc:creator>
      <dc:date>2024-11-16T01:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Input dash with text when variable is null</title>
      <link>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679805#M449984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check mark the Suppress zero values i presentation tab. May it helps&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 11:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679805#M449984</guid>
      <dc:creator>nisha_rai</dc:creator>
      <dc:date>2020-02-27T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Input dash with text when variable is null</title>
      <link>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679854#M449988</link>
      <description>&lt;P&gt;Although the value is null, I don't want to suppress the value, instead I want to make it a dash. The problem comes in with combining the numeric and string characters within the expression that I am unsure how to deal with.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679854#M449988</guid>
      <dc:creator>rtr13</dc:creator>
      <dc:date>2020-02-27T13:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Input dash with text when variable is null</title>
      <link>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679857#M449989</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe you could try something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(ShowID_US1='d',&lt;BR /&gt;If(Len(Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'##.0'))=0,'-',&lt;BR /&gt;Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'##.0')) &amp;amp; ' days',&lt;BR /&gt;if(ShowID_US1='h',&lt;BR /&gt;If(Len(Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'#,##0'))=0,'-',&lt;BR /&gt;Num(Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalDays)/Sum({&amp;lt;Year={'Previous Year'}&amp;gt;}TotalUD),'#,##0')) &amp;amp; ' hours'))&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-dash-with-text-when-variable-is-null/m-p/1679857#M449989</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2020-02-27T13:19:13Z</dc:date>
    </item>
  </channel>
</rss>

