<?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 Re: Format value based on another dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200062#M22712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Briana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing that appears to be wrong in your formula is the use of double quotes for the string '01: Sales' instead of single quotes. So, I'd correct the formula this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Attribute='01: Sales',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Num(Sum(Value)/1000,'#,##0'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Sum(Value),'#,##0.00%'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me just mention as a side comment that this calculation will get a lot slower than it should be, especially when you add all other options. Qlik Sense will calculate all the possible formulas and show one of the results to you. If your data is very small, than this may not be a concern, otherwise, I'd look for other ways of reaching the same effect.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oleg Troyansky&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 22:12:25 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2016-10-28T22:12:25Z</dc:date>
    <item>
      <title>Format value based on another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200061#M22711</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 am somewhat new to Qlik Sense and am setting up a pivot table.&amp;nbsp; My data is set up in such a way that there is a value field with a number, and an "Attribute" field.&amp;nbsp; The "Attribute" field is being used to list out the values.&amp;nbsp; An example of the data is shown below, and I would like to reflect the formatting similarly in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 235px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e; background: #70ad47;" width="154"&gt;Attribute&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none; background: #70ad47;" width="81"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e; background: #e2efda;"&gt;01: Sales&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none; background: #e2efda;"&gt;&amp;nbsp;&amp;nbsp; 100,000.00 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e;"&gt;02: Cost of Sales&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 90,000.00 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e; background: #e2efda;"&gt;03: Gross Margin&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none; background: #e2efda;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,000.00 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e;"&gt;04: Operating Expenses&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,000.00 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e; background: #e2efda;"&gt;05: Operating Margin&lt;/TD&gt;&lt;TD class="xl65" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none; background: #e2efda;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,000.00 &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e;"&gt;06: OM %&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none;"&gt;5.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e; background: #e2efda;"&gt;07: Adjusted %&lt;/TD&gt;&lt;TD align="right" class="xl67" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none; background: #e2efda;"&gt;3.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="font-size: 11pt; color: #548235; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: none; border-bottom: 0.5pt solid #a9d08e; border-left: 0.5pt solid #a9d08e;"&gt;08: Adjustment&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri, sans-serif; border-top: 0.5pt solid #a9d08e; border-right: 0.5pt solid #a9d08e; border-bottom: 0.5pt solid #a9d08e; border-left: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (2,000.00)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After playing around with the expression formulas for the value, I have found that it is possible to determine formatting via formula, however I am having trouble with formulating the logic to make it format based on the Attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is as far as I have gotten, but it is currently reading the condition as false, and thus formatting everything as a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Attribute="01: Sales",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Num(Sum(Value)/1000,'#,##0'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Sum(Value),'#,##0.00%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to format conditionally in a pivot table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts are quite welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Briana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 21:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200061#M22711</guid>
      <dc:creator />
      <dc:date>2016-10-28T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Format value based on another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200062#M22712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Briana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only thing that appears to be wrong in your formula is the use of double quotes for the string '01: Sales' instead of single quotes. So, I'd correct the formula this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Attribute='01: Sales',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Num(Sum(Value)/1000,'#,##0'),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Sum(Value),'#,##0.00%'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let me just mention as a side comment that this calculation will get a lot slower than it should be, especially when you add all other options. Qlik Sense will calculate all the possible formulas and show one of the results to you. If your data is very small, than this may not be a concern, otherwise, I'd look for other ways of reaching the same effect.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Oleg Troyansky&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Learn advanced QlikView and Qlik Sense techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 22:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200062#M22712</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-28T22:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Format value based on another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200063#M22713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help, it worked and everything is much better to look at.&amp;nbsp; My dataset is very small, fortunately, so this does not cause me any issue in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Briana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2016 01:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Format-value-based-on-another-dimension/m-p/1200063#M22713</guid>
      <dc:creator />
      <dc:date>2016-10-29T01:59:29Z</dc:date>
    </item>
  </channel>
</rss>

