<?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 formatting with a data type expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1974398#M80377</link>
    <description>&lt;P&gt;I have a question about data formatiing with my data types. Each type of data needs to be formatted differently.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Revenue ex: $940,928,430&lt;/P&gt;
&lt;P&gt;Rate ex: $2.58&lt;/P&gt;
&lt;P&gt;-Amount ex: 250,000,945&lt;/P&gt;
&lt;P&gt;This is what I currently have but it's an error, not sure how to format the if statement and the formatting for the values. Let me know your thoughts&lt;/P&gt;
&lt;P&gt;=if(data_type= "Rev", '$###,###,###',&lt;BR /&gt;if(data_type= "Rate", '$##.##',&lt;BR /&gt;if(data_type= "Amt", '###,###,###',&lt;/P&gt;
&lt;P&gt;)))&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 17:44:33 GMT</pubDate>
    <dc:creator>Kayde_72</dc:creator>
    <dc:date>2022-08-29T17:44:33Z</dc:date>
    <item>
      <title>Conditional formatting with a data type expression</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1974398#M80377</link>
      <description>&lt;P&gt;I have a question about data formatiing with my data types. Each type of data needs to be formatted differently.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Revenue ex: $940,928,430&lt;/P&gt;
&lt;P&gt;Rate ex: $2.58&lt;/P&gt;
&lt;P&gt;-Amount ex: 250,000,945&lt;/P&gt;
&lt;P&gt;This is what I currently have but it's an error, not sure how to format the if statement and the formatting for the values. Let me know your thoughts&lt;/P&gt;
&lt;P&gt;=if(data_type= "Rev", '$###,###,###',&lt;BR /&gt;if(data_type= "Rate", '$##.##',&lt;BR /&gt;if(data_type= "Amt", '###,###,###',&lt;/P&gt;
&lt;P&gt;)))&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1974398#M80377</guid>
      <dc:creator>Kayde_72</dc:creator>
      <dc:date>2022-08-29T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting with a data type expression</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1974404#M80379</link>
      <description>&lt;P&gt;Your error is a result of using double quotes instead of single quotes. It also seems to be missing the Num() function that would tell it you want to format as number:&lt;/P&gt;
&lt;P&gt;=num(YourFormulaHere,if(data_type= 'Rev', '$###,###,###',&lt;BR /&gt;if(data_type= 'Rate', '$##.##',&lt;BR /&gt;if(data_type= 'Amt', '###,###,###',&lt;/P&gt;
&lt;P&gt;))))&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1974404#M80379</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2022-08-29T17:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional formatting with a data type expression</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1981159#M80964</link>
      <description>&lt;P&gt;If someone else has the same question here is how I solved it:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had different scenarios and some more formula pieces to add, but this is the finished product with the formatting I wanted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(data_type='Rev', Money(Sum({&amp;lt;scenario={'A'}&amp;gt;}data),'$#,##0'),&lt;/P&gt;
&lt;P&gt;if(data_type='Amt', num(sum({&amp;lt;scenario={'A'}&amp;gt;}data),'#,##0'),&lt;/P&gt;
&lt;P&gt;num(avg({&amp;lt;scenario={'A'}&amp;gt;}data),'#,##0.00')))&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 22:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-formatting-with-a-data-type-expression/m-p/1981159#M80964</guid>
      <dc:creator>Kayde_72</dc:creator>
      <dc:date>2022-09-14T22:01:25Z</dc:date>
    </item>
  </channel>
</rss>

