<?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 Reg:Query on SET analysis with Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202114#M59938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing BOM report which used to find out the variance between the BOM ids interms of Cost.For that I am selecting&lt;/P&gt;&lt;P&gt;Area ID,Production ID And Bom ID.Then I will click button will be known as SET first. Again I will select Area ID,Production ID And Bom ID and will click second button.It will known as SET Second.&lt;/P&gt;&lt;P&gt;I am storing the values which is selected in ListBox in variable using Macro.So in pivot table,I am summing up the first value and second value in two diffrent Expression&lt;/P&gt;&lt;P&gt;The first expression is subracted with Second Exp to find out Variance.Now thing is when I click second button all the values is geeting equal so final value coming as Zero.&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Here I have atatched My Macro.Pls find the attachment and do the needful&lt;/P&gt;&lt;P&gt;EXP1:BM1&lt;/P&gt;&lt;P&gt;EXP2:BM2&lt;/P&gt;&lt;P&gt;Varince BM1-BM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Apr 2010 13:04:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-05T13:04:34Z</dc:date>
    <item>
      <title>Reg:Query on SET analysis with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202114#M59938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing BOM report which used to find out the variance between the BOM ids interms of Cost.For that I am selecting&lt;/P&gt;&lt;P&gt;Area ID,Production ID And Bom ID.Then I will click button will be known as SET first. Again I will select Area ID,Production ID And Bom ID and will click second button.It will known as SET Second.&lt;/P&gt;&lt;P&gt;I am storing the values which is selected in ListBox in variable using Macro.So in pivot table,I am summing up the first value and second value in two diffrent Expression&lt;/P&gt;&lt;P&gt;The first expression is subracted with Second Exp to find out Variance.Now thing is when I click second button all the values is geeting equal so final value coming as Zero.&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Here I have atatched My Macro.Pls find the attachment and do the needful&lt;/P&gt;&lt;P&gt;EXP1:BM1&lt;/P&gt;&lt;P&gt;EXP2:BM2&lt;/P&gt;&lt;P&gt;Varince BM1-BM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 13:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202114#M59938</guid>
      <dc:creator />
      <dc:date>2010-04-05T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Reg:Query on SET analysis with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202115#M59939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the Expressions as you posted them at the end? or are you using them with set analysis?&lt;/P&gt;&lt;P&gt;If the Bookmarks were created correctly, the expression should be:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum({BM1} Cost) - sum({BM2} Cost)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 19:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202115#M59939</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-04-05T19:10:50Z</dc:date>
    </item>
    <item>
      <title>Reg:Query on SET analysis with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202116#M59940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;I am using the same type of expression in my pivot table.&lt;/P&gt;&lt;P&gt;Column 1-Sum({BM1} Cost)&lt;/P&gt;&lt;P&gt;Column2-Sum({BM2} Cost)&lt;/P&gt;&lt;P&gt;Column 3-Column1-Column2&lt;/P&gt;&lt;P&gt;In Macro am Creating BookMark like This:&lt;/P&gt;&lt;P&gt;sub BM1&lt;BR /&gt; ActiveDocument.RemoveDocBookmark "BM1"&lt;BR /&gt; ActiveDocument.CreateDocBookmark false, "BM1"&lt;BR /&gt; ActiveDocument.RecallDocBookmark "BM1"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("DATAAREAID").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("DATAAREAID1").SetContent val.item(0).text, true&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("dim_ITEM_ID_PROD").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("BM1_Prod_item").SetContent val.item(0).text, true&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("dim_PROD_COST_CALC_ID").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("BM1_Calc_ID").SetContent val.item(0).text, true&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;sub BM2&lt;BR /&gt; ActiveDocument.RemoveDocBookmark "BM2"&lt;BR /&gt; ActiveDocument.CreateDocBookmark false, "BM2"&lt;BR /&gt; ActiveDocument.RecallDocBookmark "BM2"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("DATAAREAID").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("DATAAREAID2").SetContent val.item(0).text, true&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("dim_ITEM_ID_PROD").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("BM1_Prod_item").SetContent val.item(0).text, true&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; set val=ActiveDocument.Fields("dim_PROD_COST_CALC_ID").GetSelectedValues&lt;BR /&gt; ActiveDocument.Variables("BM1_Calc_ID").SetContent val.item(0).text,true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;So when I click Button in front end after selecting AREA ID,PROD ID,BOM ID I want to know diffrence between these BOM ID&lt;/P&gt;&lt;P&gt;in terms of Cost.But now when I click second button all values become zero.So kindly help me out in this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 07:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Query-on-SET-analysis-with-Macro/m-p/202116#M59940</guid>
      <dc:creator />
      <dc:date>2010-04-06T07:13:13Z</dc:date>
    </item>
  </channel>
</rss>

