<?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: Macro development in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582687#M216413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The user selects i.e. 201409, looks at the chart with the totals and sees aggregated totals from 201401 to 201409. But only 201409 is selected. If you look at the detail records, then you will only see the records for that period. How will you see the records from 201401?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 09:17:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-29T09:17:11Z</dc:date>
    <item>
      <title>Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582685#M216411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model which has a date selection, i.e. 201402.&lt;/P&gt;&lt;P&gt;I have an inline load which gives the user the option to choose from current Movement, YTD or Closing Balance.&lt;/P&gt;&lt;P&gt;When the user selects YTD for instance, the set analysis works out totals based on variables which are derived from the currently selected date.&lt;/P&gt;&lt;P&gt;The problem is that the user then wants to see detailed transactions for that date range, without the date range being selected. The transactions, which are in a flat table will only show for the selected date, even though the graph shows YTD.&lt;/P&gt;&lt;P&gt;I was hoping to create a trigger on change of the field which lists the option for YTD, Movement and Closing Balance, so that if the user selects YTD, it will automatically select all dates up to the selected date for the current year.&lt;/P&gt;&lt;P&gt;Unfortunately I don't know how one would build a macro for this and I don't know of any other way to do this.&lt;/P&gt;&lt;P&gt;Your help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards, Mertin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582685#M216411</guid>
      <dc:creator />
      <dc:date>2014-01-29T08:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582686#M216412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not believe this needs a macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need two charts, one is the existing YTD chart, the detailed chart is a clone of the YTD chart with the date and/or unique transaction ID added as additional dimensions.&lt;/P&gt;&lt;P&gt;The user can then select which chart to view, or add both charts to a container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 08:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582686#M216412</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-29T08:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582687#M216413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The user selects i.e. 201409, looks at the chart with the totals and sees aggregated totals from 201401 to 201409. But only 201409 is selected. If you look at the detail records, then you will only see the records for that period. How will you see the records from 201401?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 09:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582687#M216413</guid>
      <dc:creator />
      <dc:date>2014-01-29T09:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582688#M216414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add the dimensions to the detailed chart and the sum expression will show the data day by day or transaction by transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What chart expression are you using? Can you post the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582688#M216414</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-29T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582689#M216415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The detail records has all the dimensions and no sums. It's just the detail. There is just one date selected, i.e. 201409. The other chart sums values based on that date, by using variables, it works out the first date, i.e. 201401 and then shows the total using set analysis. When you look at the detail table, the model is still filtered to the one date 201409, so the detail for the other months won't show, but the user wants to see them when choosing the indicator for YTD. (The set analysis in the summary chart also checks the indicator.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582689#M216415</guid>
      <dc:creator />
      <dc:date>2014-01-29T10:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582690#M216416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try following the steps suggested by creating a new detailed chart as a clone of the YTD chart with the extra dimensions and the expression.&lt;/P&gt;&lt;P&gt; Macros should always be a last resort in QlikView as they remove a lot of the caching and report optimisation. I rarely use macros in most cases they are not needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 10:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582690#M216416</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-29T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582691#M216417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no dimensions to add, they are all in the detail and the expression is not applicable because summing on detail records won't give anything other than the detail itself. Putting in a sum on the detail level with set analysis included for the range period, won't make the model display all the detail records for the range, it will still only display as per the selected period.&lt;/P&gt;&lt;P&gt;A colleague of mine has managed to build the macro that we need though and it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ytdSelect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ActiveDocument.ActiveSheet.GetProperties.Name = "GL Transactions" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld_baltype = ActiveDocument.Fields("Balance Type").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i = 0 to fld_baltype.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if fld_baltype(i).Text = "YTD" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fld_cons_year_period = ActiveDocument.Fields("cons_year_period").GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' msgbox(fld_cons_year_period(fld_cons_year_period.Count-1).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for cal=left(fld_cons_year_period(fld_cons_year_period.Count-1).Text,4)&amp;amp;"01" to fld_cons_year_period(fld_cons_year_period.Count-1).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; calselection = calselection&amp;amp;cal&amp;amp;"|"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' msgbox( "("&amp;amp;left(calselection,len(calselection)-1)&amp;amp;")" )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("cons_year_period").select "("&amp;amp;left(calselection,len(calselection)-1)&amp;amp;")"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your welcome &lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 12:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582691#M216417</guid>
      <dc:creator />
      <dc:date>2014-01-29T12:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582692#M216418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your detail chart should be able to display the detail using the same Set expression as the YTD chart. With the additional modifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Date=&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to ignore the Date selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 12:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582692#M216418</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-01-29T12:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582693#M216419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be helpful if you want to sum it, but they don't want to, they want to see the detail..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582693#M216419</guid>
      <dc:creator />
      <dc:date>2014-01-29T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582694#M216420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, and they only want to see the detail for the YTD, not the full set.. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 13:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582694#M216420</guid>
      <dc:creator />
      <dc:date>2014-01-29T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582695#M216421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All this can be done without macros, just use the functionality of QlikView charts to display the data at the summarised YTD level in one chart and at the detail of the transactions that are being totalled for the YTD figures in another chart, just add the necessary dimensions to view the detail.&lt;/P&gt;&lt;P&gt;Macros should always be a last resort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 16:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582695#M216421</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-29T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro development</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582696#M216422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree about avoiding macro's, but this one can't be done without it. I don't have time to set up a sample now to show you, but I've also tried to explain it in every way. But thanks for the effort guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 09:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-development/m-p/582696#M216422</guid>
      <dc:creator />
      <dc:date>2014-01-30T09:33:57Z</dc:date>
    </item>
  </channel>
</rss>

