<?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: Parse variable to use as a value in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Parse-variable-to-use-as-a-value-in-set-analysis/m-p/1723955#M725392</link>
    <description>&lt;P&gt;In these types of posts, it will be more helpful if you attach a sample QVW file such that Members can see your data model and all expressions etc., this is the best way to ensure you receive responses, as it is difficult for folks to sort things out most of the time without that additional information available to review.&lt;/P&gt;&lt;P&gt;The best place I could point you to otherwise is the Design Blog area to see if you can find some posts there that will help you get things sorted:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 11:44:13 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-07-01T11:44:13Z</dc:date>
    <item>
      <title>Parse variable to use as a value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parse-variable-to-use-as-a-value-in-set-analysis/m-p/1708240#M725391</link>
      <description>&lt;P&gt;&lt;EM&gt;I need to parse a variable that is set from the variable input extension and use the parsed string in two ways in a single expression.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Currently I have 9 sheets to convey backlog conditions for 9 units designated by letters.&amp;nbsp; If I can parse the variable in two spots in the expression, I can reduce 9 sheets to one sheet and add much more understanding.&amp;nbsp; The full expression looks like this now:&lt;BR /&gt;sum({$&amp;lt;csp_calendar.plan_facility_cd={'&lt;FONT color="#FF0000"&gt;B&lt;/FONT&gt;'}&amp;gt;}csp_calendar.plan_tons * [yield.&lt;FONT color="#FF0000"&gt;b&lt;/FONT&gt;])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The variable set from the variable input extension is Facility_Backlog.&amp;nbsp; The values for this variable take the form "&lt;FONT color="#0000FF"&gt;b&lt;/FONT&gt;_backlog_type",&amp;nbsp; "&lt;FONT color="#0000FF"&gt;p&lt;/FONT&gt;_backlog_type", or "&lt;FONT color="#0000FF"&gt;c&lt;/FONT&gt;_backlog_type", etc.&amp;nbsp; I need to parse the first letter in the variable's value (i.e. blue letter) and insert it in the two places highlighted by red in the original expression above:&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;EM&gt;The first place to use it is in the set analysis in the expression.&amp;nbsp; I have tried variations on the following bolded part, but what I've tried didn't work.&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;sum({$&amp;lt;csp_calendar.plan_facility_cd=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;{'$(Capitalize(Left(Facility_Backlog,1)))'}&lt;/STRONG&gt;&lt;/FONT&gt;&amp;gt;}csp_calendar.plan_tons * [yield.b])&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;The second place I need to use it is in the measure portion of the expression.&amp;nbsp; I need to concatenate "yield." with the first letter of the value of the variable.&amp;nbsp; I tested the bolded below, that that didn't work either.&lt;BR /&gt;=sum({$&amp;lt;csp_calendar.plan_facility_cd={'B'}&amp;gt;}csp_calendar.plan_tons *&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; (="$('yield.' &amp;amp; Left(Facility_Backlog,1))"))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jordan&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parse-variable-to-use-as-a-value-in-set-analysis/m-p/1708240#M725391</guid>
      <dc:creator>germanboxers</dc:creator>
      <dc:date>2024-11-16T18:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parse variable to use as a value in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Parse-variable-to-use-as-a-value-in-set-analysis/m-p/1723955#M725392</link>
      <description>&lt;P&gt;In these types of posts, it will be more helpful if you attach a sample QVW file such that Members can see your data model and all expressions etc., this is the best way to ensure you receive responses, as it is difficult for folks to sort things out most of the time without that additional information available to review.&lt;/P&gt;&lt;P&gt;The best place I could point you to otherwise is the Design Blog area to see if you can find some posts there that will help you get things sorted:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 11:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Parse-variable-to-use-as-a-value-in-set-analysis/m-p/1723955#M725392</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-01T11:44:13Z</dc:date>
    </item>
  </channel>
</rss>

