<?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 EditScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215173#M68653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same you should be able to achieve with IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD ...., IF(WILDMATCH(b.measurename, '*depth*'), a.Value, 0) AS Depth;&lt;BR /&gt;SQL SELECT * FROM .....&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 16:16:14 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2011-02-14T16:16:14Z</dc:date>
    <item>
      <title>EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215170#M68650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;in my database having 2 tables and contains field in first table is "measurename" , the second table having a field "value".&lt;/P&gt;&lt;P&gt;In Qlikview EditScript i used JOINS for this 2 tables.&lt;/P&gt;&lt;P&gt;Now my need is how can i write "Case' Statement for getting particular measurename's value in straightTable.&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 15:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EditScript/m-p/215170#M68650</guid>
      <dc:creator />
      <dc:date>2011-02-14T15:19:06Z</dc:date>
    </item>
    <item>
      <title>EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215171#M68651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 15:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EditScript/m-p/215171#M68651</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-02-14T15:39:08Z</dc:date>
    </item>
    <item>
      <title>EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215172#M68652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you check is this query is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;case when b.measurename like '%depth%' then a.Value else 0 end as depth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM AliNewDB.dbo."FACT_AttributeMeasure" as a inner join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AliNewDB.dbo."DIM_LensAttributeMeasure" as b on a.SkeyMeasureID=b.SkeyMeasureID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 16:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EditScript/m-p/215172#M68652</guid>
      <dc:creator />
      <dc:date>2011-02-14T16:01:48Z</dc:date>
    </item>
    <item>
      <title>EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215173#M68653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same you should be able to achieve with IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD ...., IF(WILDMATCH(b.measurename, '*depth*'), a.Value, 0) AS Depth;&lt;BR /&gt;SQL SELECT * FROM .....&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 16:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EditScript/m-p/215173#M68653</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-02-14T16:16:14Z</dc:date>
    </item>
    <item>
      <title>EditScript</title>
      <link>https://community.qlik.com/t5/QlikView/EditScript/m-p/215174#M68654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thnks for ur immediate response, when i am trying it what you send it is showing an error like this . And check once below to the ERROR MESSAGE which is in EDITSCRIPT.&lt;/P&gt;&lt;P&gt;By checking this can you send where i need to modify .&lt;/P&gt;&lt;P&gt;/******ERROR MESSAGE**********/&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;b.MeasureName&amp;gt;&lt;BR /&gt;SQL SELECT b.MeasureName,&lt;/P&gt;&lt;P&gt;a.SkeyInspectionID as inspid,&lt;/P&gt;&lt;P&gt;SkeyLensAttributeID,&lt;/P&gt;&lt;P&gt;a.Value as MeasureValue,&lt;/P&gt;&lt;P&gt;a.LensPosX,&lt;/P&gt;&lt;P&gt;a.LensPosy&lt;/P&gt;&lt;P&gt;FROM AliNewDB.dbo."FACT_AttributeMeasure" as a inner join&lt;/P&gt;&lt;P&gt;AliNewDB.dbo."DIM_LensAttributeMeasure" as b on a.SkeyMeasureID=b.SkeyMeasureID&lt;/P&gt;&lt;P&gt;/*********PRESENTED IN EDITSCRIPT*************/&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep(Inspection)&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;RowNo() as MeasureKey &lt;P&gt;MeasureName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MeasureValue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;LensPosX,&lt;/P&gt;&lt;P&gt;LensPosy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hash128(inspid, SkeyLensAttributeID) as insp_defect,&lt;/P&gt;&lt;P&gt;IF(WILDMATCH(b.MeasureName, '*depth*'), a.Value, 0) AS Depth;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;SQL&lt;/B&gt; SELECT b.MeasureName,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a.SkeyInspectionID as inspid,&lt;/P&gt;&lt;P&gt;SkeyLensAttributeID,&lt;/P&gt;&lt;P&gt;a.Value as MeasureValue,&lt;/P&gt;&lt;P&gt;a.LensPosX,&lt;/P&gt;&lt;P&gt;a.LensPosy&lt;/P&gt;&lt;P&gt;FROM AliNewDB.dbo."FACT_AttributeMeasure" as a inner join&lt;/P&gt;&lt;P&gt;AliNewDB.dbo."DIM_LensAttributeMeasure" as b on a.SkeyMeasureID=b.SkeyMeasureID;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 16:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EditScript/m-p/215174#M68654</guid>
      <dc:creator />
      <dc:date>2011-02-14T16:48:29Z</dc:date>
    </item>
  </channel>
</rss>

