<?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 Dimension to be set with static values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768100#M59409</link>
    <description>&lt;P&gt;Test result is single value dimension and psuedo code as follows&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Result :&amp;nbsp;&amp;nbsp;Pseudo Code:&lt;BR /&gt;if (Update Score='1' then 'Success', if (Update Score=2 then 'Suspect', if (Update Score='3' then 'Failed')))&lt;/P&gt;&lt;P&gt;How this be created ?&lt;/P&gt;&lt;P&gt;i am getting only Failed as a value with if then else condition even though update score is 1 or 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Dec 2020 01:35:35 GMT</pubDate>
    <dc:creator>shrutipg</dc:creator>
    <dc:date>2020-12-13T01:35:35Z</dc:date>
    <item>
      <title>Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768100#M59409</link>
      <description>&lt;P&gt;Test result is single value dimension and psuedo code as follows&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test Result :&amp;nbsp;&amp;nbsp;Pseudo Code:&lt;BR /&gt;if (Update Score='1' then 'Success', if (Update Score=2 then 'Suspect', if (Update Score='3' then 'Failed')))&lt;/P&gt;&lt;P&gt;How this be created ?&lt;/P&gt;&lt;P&gt;i am getting only Failed as a value with if then else condition even though update score is 1 or 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 01:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768100#M59409</guid>
      <dc:creator>shrutipg</dc:creator>
      <dc:date>2020-12-13T01:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768105#M59410</link>
      <description>&lt;P&gt;Try adjusting the syntax to this:&lt;/P&gt;&lt;P&gt;if ([Update Score] ='1', 'Success', if ([Update Score] =2, 'Suspect', if ([Update Score] ='3', 'Failed')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 07:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768105#M59410</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-13T07:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768106#M59411</link>
      <description>&lt;P&gt;You could even try using &lt;STRIKE&gt;Match()&lt;/STRIKE&gt; &lt;A href="https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/pick.htm" target="_self"&gt;pick()&lt;/A&gt;&amp;nbsp;for this.&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Match ([Update Score], 'Success', 'Suspect', 'Failed')&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/pick.htm" target="_self"&gt;Pick&lt;/A&gt;([Update Score], 'Success', 'Suspect', 'Failed')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 18:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768106#M59411</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-13T18:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768113#M59412</link>
      <description>&lt;P&gt;Hi Vegar,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks , But Update Score returns&amp;nbsp; numeric value ( 1, 2 , or 3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;and result should be success, failed, suspect based on numbers returned, match dint work here&amp;nbsp;&lt;/P&gt;&lt;P&gt;correct me if wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 09:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768113#M59412</guid>
      <dc:creator>shrutipg</dc:creator>
      <dc:date>2020-12-13T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768126#M59413</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If Update Score is numeric, you want to use the pick function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pick([Update Score], 'Success', 'Suspect', 'Failed')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 13:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768126#M59413</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2020-12-13T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768141#M59417</link>
      <description>&lt;P&gt;Yes, pick() was what I was thinking of, not match() . Sorry for missleading you &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120791"&gt;@shrutipg&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 16:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768141#M59417</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-13T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768144#M59418</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120791"&gt;@shrutipg&lt;/a&gt;&amp;nbsp; It is better to create field&amp;nbsp; using applymap in script instead of using calculated dimension.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Map_Score:
mapping LOAD * inline [
Score, Description
1, Success
2,Suspect
3,Failed ];

Data:
LOAD *,
     applymap('Map_Score', Updated_Score,'NA') as Description
FROM table;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now you can use&amp;nbsp;Description field in Dimension.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2020 16:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768144#M59418</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-12-13T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension to be set with static values</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768386#M59442</link>
      <description>&lt;P&gt;Thanks , it has worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but still not able to add this logic to dimension.&lt;/P&gt;&lt;P&gt;It worked when i added the calculation as measure&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 20:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-to-be-set-with-static-values/m-p/1768386#M59442</guid>
      <dc:creator>shrutipg</dc:creator>
      <dc:date>2020-12-14T20:45:56Z</dc:date>
    </item>
  </channel>
</rss>

