<?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: Hyphen in string value cannot be passed through a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656372#M448332</link>
    <description>&lt;P&gt;I wonder, Where did you created the variable? Perhaps this way If you create variable in Overview?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=num(Sum({&amp;lt;Region={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[=Region=$(vRegionView)]&lt;/STRONG&gt;&lt;/FONT&gt;},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_ACT)/Sum({&amp;lt;Region={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[=Region=$(vRegionView)]&lt;/STRONG&gt;&lt;/FONT&gt;},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_BUD)*100,'###.#&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;')&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 07:53:02 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-12-11T07:53:02Z</dc:date>
    <item>
      <title>Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656371#M448331</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a value in my data which&amp;nbsp; hyphen . It is a string value like 'abc-dce'&lt;/P&gt;&lt;P&gt;I need to use it my set analysis and calculation to filter based on that value.&lt;/P&gt;&lt;P&gt;but if I pass that value , it results in the below error.&lt;/P&gt;&lt;P&gt;"Error: Error in set modifier ad hoc element list:&lt;BR /&gt;',' or ')' expected"&lt;/P&gt;&lt;P&gt;Below is the KPI Calculation&lt;/P&gt;&lt;P&gt;=num(Sum({&amp;lt;Region={$(vRegionView)},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_ACT)/Sum({&amp;lt;Region={$(vRegionView)},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_BUD)*100,'###.#')&amp;amp;'%'&lt;/P&gt;&lt;P&gt;vRegionView==TRIM(REGION_VIEW)&lt;/P&gt;&lt;P&gt;Only when I select value in Region View with the hyphen in the string , it will result in&amp;nbsp; error.&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 07:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656371#M448331</guid>
      <dc:creator>kusha_2007</dc:creator>
      <dc:date>2019-12-11T07:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656372#M448332</link>
      <description>&lt;P&gt;I wonder, Where did you created the variable? Perhaps this way If you create variable in Overview?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=num(Sum({&amp;lt;Region={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[=Region=$(vRegionView)]&lt;/STRONG&gt;&lt;/FONT&gt;},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_ACT)/Sum({&amp;lt;Region={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[=Region=$(vRegionView)]&lt;/STRONG&gt;&lt;/FONT&gt;},PeriodFlag={'YTD'}&amp;gt;}NET_SALES_BUD)*100,'###.#&lt;FONT color="#FF0000"&gt;%&lt;/FONT&gt;')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 07:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656372#M448332</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-11T07:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656382#M448333</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;BR /&gt;Thanks for your reply . If I changed it to below expression given by you, It just returns 0.0 for all the selections which is not correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 08:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656382#M448333</guid>
      <dc:creator>kusha_2007</dc:creator>
      <dc:date>2019-12-11T08:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656503#M448341</link>
      <description>&lt;P&gt;What it is returning when you have applied below&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(Sum({&amp;lt;Region={&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;=Region=TRIM(REGION_VIEW)"&lt;/FONT&gt;},PeriodFlag={'YTD'}&amp;gt;} (NET_SALES_ACT/NET_SALES_BUD)*100), '###.#%')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1656503#M448341</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-12-11T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1659051#M448579</link>
      <description>&lt;P&gt;Did Anil's latest post help you get what you needed for your use case?&amp;nbsp; If so, please do not forget to return to the thread and use the Accept as Solution button on his post that helped get things working.&amp;nbsp; This gives credit to him for the assistance as well as letting other Community Members know what actually worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other area you can search in the future to find potential assistance is the following:&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;There are hundreds of how-to related posts in that area, they can be a bit tricky to find sometimes, but generally you will likely find something to help in many cases.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 14:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1659051#M448579</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-18T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hyphen in string value cannot be passed through a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1659143#M448595</link>
      <description>&lt;P&gt;You will need to enclose the variable reference in single quotes:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'$(vRegionView)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 19:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hyphen-in-string-value-cannot-be-passed-through-a-variable/m-p/1659143#M448595</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-18T19:32:45Z</dc:date>
    </item>
  </channel>
</rss>

