<?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 Create single metric from complex expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-single-metric-from-complex-expression/m-p/1679608#M506679</link>
    <description>&lt;P&gt;I have to show one average number for the following expression: (Score*Scope)/(Sum of Scope)&lt;/P&gt;&lt;P&gt;I have done this in a chart with a row for EACH DEFECT_ID but how can I translate it to a single variable for all applicable DEFECT_ID for a KPI?&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp;=if(match(CUR_STATUS,'Closed','Closed - Maintenance'),DEFECT_ID,&lt;BR /&gt;if(wildmatch(CUR_GOVERNANCE_PHASE,'5.1*'),DEFECT_ID,null()))&lt;/P&gt;&lt;P&gt;Score:&amp;nbsp;aggr(if(count(TAGS_GOALS)&amp;gt;0,3,&lt;BR /&gt;if(not match(PRIMARY_DEFINE_BODY,'No Define Needed'),2,&lt;BR /&gt;if(match(PRIMARY_DEFINE_BODY,'No Define Needed'),1,&lt;BR /&gt;1))),DEFECT_ID)&lt;/P&gt;&lt;P&gt;Scope:&amp;nbsp;if(isnull(EST_SCOPE_VALUE),1,EST_SCOPE_VALUE)&lt;/P&gt;&lt;P&gt;I am trying to set a variable called vWeight but it's not working:&lt;/P&gt;&lt;P&gt;=if(match(CUR_STATUS,'Closed','Closed - Maintenance') or if(wildmatch(CUR_GOVERNANCE_PHASE,'5.1*'),EST_SCOPE_VALUE*&lt;BR /&gt;(aggr(if(count(TAGS_GOALS)&amp;gt;0,3,&lt;BR /&gt;if(not match(PRIMARY_DEFINE_BODY,'No Define Needed'),2,&lt;BR /&gt;if(match(PRIMARY_DEFINE_BODY,'No Define Needed'),1,&lt;BR /&gt;1))),DEFECT_ID))/(sum(EST_SCOPE_VALUE)))&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:10:49 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2024-11-16T01:10:49Z</dc:date>
    <item>
      <title>Create single metric from complex expression</title>
      <link>https://community.qlik.com/t5/QlikView/Create-single-metric-from-complex-expression/m-p/1679608#M506679</link>
      <description>&lt;P&gt;I have to show one average number for the following expression: (Score*Scope)/(Sum of Scope)&lt;/P&gt;&lt;P&gt;I have done this in a chart with a row for EACH DEFECT_ID but how can I translate it to a single variable for all applicable DEFECT_ID for a KPI?&lt;/P&gt;&lt;P&gt;Dimension:&amp;nbsp;=if(match(CUR_STATUS,'Closed','Closed - Maintenance'),DEFECT_ID,&lt;BR /&gt;if(wildmatch(CUR_GOVERNANCE_PHASE,'5.1*'),DEFECT_ID,null()))&lt;/P&gt;&lt;P&gt;Score:&amp;nbsp;aggr(if(count(TAGS_GOALS)&amp;gt;0,3,&lt;BR /&gt;if(not match(PRIMARY_DEFINE_BODY,'No Define Needed'),2,&lt;BR /&gt;if(match(PRIMARY_DEFINE_BODY,'No Define Needed'),1,&lt;BR /&gt;1))),DEFECT_ID)&lt;/P&gt;&lt;P&gt;Scope:&amp;nbsp;if(isnull(EST_SCOPE_VALUE),1,EST_SCOPE_VALUE)&lt;/P&gt;&lt;P&gt;I am trying to set a variable called vWeight but it's not working:&lt;/P&gt;&lt;P&gt;=if(match(CUR_STATUS,'Closed','Closed - Maintenance') or if(wildmatch(CUR_GOVERNANCE_PHASE,'5.1*'),EST_SCOPE_VALUE*&lt;BR /&gt;(aggr(if(count(TAGS_GOALS)&amp;gt;0,3,&lt;BR /&gt;if(not match(PRIMARY_DEFINE_BODY,'No Define Needed'),2,&lt;BR /&gt;if(match(PRIMARY_DEFINE_BODY,'No Define Needed'),1,&lt;BR /&gt;1))),DEFECT_ID))/(sum(EST_SCOPE_VALUE)))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-single-metric-from-complex-expression/m-p/1679608#M506679</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2024-11-16T01:10:49Z</dc:date>
    </item>
  </channel>
</rss>

