<?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 Conditional value labels for missing values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392549#M64276</link>
    <description>&lt;P&gt;I wonder if there's a way to set up conditional value labels based on values from two columns. If I refer to the snapshot table below, I have "column 1" which could either be filled or empty and I also have "column 2" which either be filled or empty. &lt;STRONG&gt;What I'm trying to do is for "column 2" to be formatted like "Column 3".&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which is: (i) values formatted to a date format if there's a value AND the "column 1" value on the same row is not empty, (ii) To display "Not Credible" if the "Column 2" value is missing but "Column 1" value on the same row is not empty, and (iii) to remain as "." or empty if both "column 1" &amp;amp; "column 2" values on the same row are missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djtjhin_0-1623389032785.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33467i49A3841AAD09BC19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djtjhin_0-1623389032785.png" alt="Djtjhin_0-1623389032785.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:31:37 GMT</pubDate>
    <dc:creator>Djtjhin</dc:creator>
    <dc:date>2023-06-10T23:31:37Z</dc:date>
    <item>
      <title>Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392549#M64276</link>
      <description>&lt;P&gt;I wonder if there's a way to set up conditional value labels based on values from two columns. If I refer to the snapshot table below, I have "column 1" which could either be filled or empty and I also have "column 2" which either be filled or empty. &lt;STRONG&gt;What I'm trying to do is for "column 2" to be formatted like "Column 3".&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Which is: (i) values formatted to a date format if there's a value AND the "column 1" value on the same row is not empty, (ii) To display "Not Credible" if the "Column 2" value is missing but "Column 1" value on the same row is not empty, and (iii) to remain as "." or empty if both "column 1" &amp;amp; "column 2" values on the same row are missing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djtjhin_0-1623389032785.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33467i49A3841AAD09BC19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djtjhin_0-1623389032785.png" alt="Djtjhin_0-1623389032785.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:31:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392549#M64276</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2023-06-10T23:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392564#M64277</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The task you presented to us is a bit tricky because you wont both text "Not Credible" and Dates in the same column. Thus, assuming that your Column 2 dates are entered as numbers (no leading "0" for month &amp;lt; 10) and that the order of the day - month - year is always the same, here is a formula that should do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DATEIN = Char( :Column 2 );
DATEOUT = "";
If( !Is Missing( :Column 1 ),
	If( !Is Missing( :Column 2 ) &amp;amp; Is Number( :Column 2 ),
		If(
			Length( DATEIN ) == 8,
				DATEOUT = Format( Informat( DATEIN, "mmddyyyy" ), "ddMonyyyy" ),
			Length( Char( DATEIN ) ) == 7,
				DATEIN = "0" || DATEIN;
				DATEOUT = Format( Informat( DATEIN, "mmddyyy" ), "ddMonyyyy" );
		)
	,
		DATEOUT = "Not Credible"
	)
,
	DATEOUT = "."
);
DATEOUT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I intentionally used local variable to make the formula more readable but it is not really required.&lt;/P&gt;
&lt;P&gt;Let us know if that works for you.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 06:50:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392564#M64277</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-06-11T06:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392569#M64278</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt;. If I understand correctly, this would make the "column 2" column type to be "character", right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if I want to keep it as Numeric for further analysis ? The whole idea of differentiating blank and "not credible" is just for filtering purposes. I know I can make a new column for that but I wonder if there are other ways.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 07:23:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392569#M64278</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2021-06-11T07:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392684#M64288</link>
      <description>Hi,&lt;BR /&gt;You do not need to transform Column 2 into character: I took care of it in the formula (see: Char (Column 2) statement in the formula).&lt;BR /&gt;Did you try to use the formula I shared and did it yield the results you expected?&lt;BR /&gt;Let me know if you need help with the implementation of this potential solution.&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Fri, 11 Jun 2021 14:08:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392684#M64288</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-06-11T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392697#M64290</link>
      <description>&lt;P&gt;I tried to paste the formula you provided into "Column 2" column formula but it gave me an error. Perhaps I misunderstood your guidance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:47:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392697#M64290</guid>
      <dc:creator>Djtjhin</dc:creator>
      <dc:date>2021-06-11T14:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional value labels for missing values</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392708#M64295</link>
      <description>Hi,&lt;BR /&gt;Sorry for the confusion: the formula is intended to be added to a third column and then referring to Column 1 and Column 2; does that make sense?&lt;BR /&gt;Best,&lt;BR /&gt;TS</description>
      <pubDate>Fri, 11 Jun 2021 15:38:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-value-labels-for-missing-values/m-p/392708#M64295</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-06-11T15:38:28Z</dc:date>
    </item>
  </channel>
</rss>

