<?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 Formatting issue in a nested if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106604#M366410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following expression, which when used within a pivot table, the formatting works perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If(v_Selected=1, Num(Count({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_No),'#,###'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; If(v_Selected=2, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_LOS), '#,##0.00'),&lt;/P&gt;&lt;P&gt; If(v_Selected=3, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PreOP_LOS), '#,##0.00') ,&lt;/P&gt;&lt;P&gt; If(v_Selected=4, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PostOP_Los),'#,##0.00')&lt;/P&gt;&lt;P&gt; ))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; When I store the expression in my expression spreadsheet and load it into my QVW to use as a variable, the formatting does not seem to work anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(v_IP_Ave_LOS_Count_Spells_Nested_If) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can anyone help me with why the expression does not work when stored and used as a variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Helen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 12:54:14 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2016-06-01T12:54:14Z</dc:date>
    <item>
      <title>Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106604#M366410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following expression, which when used within a pivot table, the formatting works perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If(v_Selected=1, Num(Count({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_No),'#,###'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; If(v_Selected=2, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_LOS), '#,##0.00'),&lt;/P&gt;&lt;P&gt; If(v_Selected=3, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PreOP_LOS), '#,##0.00') ,&lt;/P&gt;&lt;P&gt; If(v_Selected=4, Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PostOP_Los),'#,##0.00')&lt;/P&gt;&lt;P&gt; ))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; When I store the expression in my expression spreadsheet and load it into my QVW to use as a variable, the formatting does not seem to work anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(v_IP_Ave_LOS_Count_Spells_Nested_If) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can anyone help me with why the expression does not work when stored and used as a variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Helen&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106604#M366410</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-06-01T12:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106605#M366411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you see a '=' sign next to the variable definition in variable overview? You might need that if that is missing I think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 12:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106605#M366411</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T12:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106606#M366412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the expression not work at all, or is it just not applying the formats correctly? If the latter, what results are you getting and what do you expect to get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106606#M366412</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-01T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106607#M366413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; When using the variable, I am getting values such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$3e+005$$$ but when I use the expression on its own I am getting the desired values I.e. 2,345&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think formatting may be the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106607#M366413</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-06-01T13:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106608#M366414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The $ signs are &lt;SPAN style="text-decoration: line-through;"&gt;a little&lt;/SPAN&gt; peculiar, but it seems that the formatting is 'lost' when the variable expands, although I can't say why. I suggest that you experiment with the format settings on the Number tab of the chart/table properties. Do you have "expression default" checked for this expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106608#M366414</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-01T13:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106609#M366415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also want to try the expression in a new straight/pivot table with the same dimensions, just to make sure that it is not corruption of the expression in the existing table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106609#M366415</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-01T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106610#M366416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the expression in a new pivot table and get the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pivot table is set to Expression Default when the problem occurs, but if I change it to an integer or Fixed decimals, I get values again.&amp;nbsp;&amp;nbsp; I would like to just change the formatting on the number tab, but as 1 of the if statements requires a different formatting from the others, I can not set them all to the same format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestions.&amp;nbsp; For now, I have referred back to my original expression and am not using the variable at the present time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 13:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106610#M366416</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2016-06-01T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting issue in a nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106611#M366417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi helen_pip,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Try this on your var or in your chart:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Pick(Selected,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Num(Count({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_No),'#,##0','.',','),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_Spell_LOS), '#,##0.00'&lt;SPAN style="font-size: 10pt;"&gt;,'.',','&lt;/SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PreOP_LOS), '#,##0.00'&lt;SPAN style="font-size: 10pt;"&gt;,'.',','&lt;/SPAN&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(avg({$&amp;lt;FactDateNum = {"&amp;gt;=$(=v_Start_Date_IP)&amp;lt;=$(=v_End_Date_IP)"}&amp;gt;}IP_PostOP_Los),'#,##0.00'&lt;SPAN style="font-size: 10pt;"&gt;,'.',','&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-issue-in-a-nested-if/m-p/1106611#M366417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T14:54:29Z</dc:date>
    </item>
  </channel>
</rss>

