<?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: Explanation for Performance Variance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867927#M1330800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAybe we can entice &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;to venture an opinion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 02:52:18 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-06-18T02:52:18Z</dc:date>
    <item>
      <title>Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867923#M1330788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've run across a strange performance variance I don't understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;STRONG&gt;LineTotal&lt;/STRONG&gt; is a measure in the fact table.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;STRONG&gt;UI_CurrencyRate&lt;/STRONG&gt; is in a data Island with always one selected.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Using a dimension of Category with 41 values, these three expressions perform about the same:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;#1.&amp;nbsp; Sum(LineTotal * UI_CurrencyRate)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;#2.&amp;nbsp; Sum(LineTotal) * only(UI_CurrencyRate)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;#3.&amp;nbsp;&amp;nbsp; Sum(LineTotal * $(=only(UI_CurrencyRate)))&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;If I add a second dimension "Year-Qtr" (6 values) into the chart, expression #2 now takes 5 times longer to run! Year-Qtr is 3 hops away from Category. Same performance if I use "Channel" (4 values, 3 hops) as my second dimension.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;But if I use "Product" (295 values,1 hop, same side of the fact table) as the second dimension, all three expressions perform the same again!&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Can anyone explain in QV Engine terms what is going on with that second expression? And why it doesn't it perform poorly on my third example?&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;The attached example demonstrates the issue. If you open it and walk through the sheets in order you'll see the differences for each combination. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;Thanks for any insight. &lt;IMG alt="2015-06-11_14-28-57.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89166_2015-06-11_14-28-57.jpg" style="height: 413px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867923#M1330788</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867924#M1330791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, for me all the options on all the tabs are fast, whatever I do / click.&amp;nbsp;&amp;nbsp; Is there something special I need to do to make it slow ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV Desktop 11.20 SR6 on a bog standard year old laptop with 2 * 1.9 GHz physical cores, hyperthreaded to 4 logical processors and 8 GB RAM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 13:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867924#M1330791</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867925#M1330794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, at least I can reproduce the issue using 11.20.12852.0409 on Win7X64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able explain it right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867925#M1330794</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867926#M1330798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 12.8000001907349px; font-family: arial, sans-serif; color: #222222;"&gt;#1.&amp;nbsp; Sum(LineTotal * UI_CurrencyRate)&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px; font-family: arial, sans-serif; color: #222222;"&gt;#2.&amp;nbsp; Sum(LineTotal) * only(UI_CurrencyRate)&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px; font-family: arial, sans-serif; color: #222222;"&gt;#3.&amp;nbsp;&amp;nbsp; Sum(LineTotal * $(=only(UI_CurrencyRate)))&lt;/P&gt;



&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I would expect an aggregation of a product to be cheaper than a product of two aggregations. That fits with the second expression being slower than the others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing the second aggregation outside the chart context performs pretty good too:&lt;/P&gt;&lt;P&gt;#4. Sum(LineTotal) * $(=only(UI_CurrencyRate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Product is used as dimension then both ProductCategoryName and LineTotal are 1 hop away and on the same side of the fact table. In all other cases where two dimensions involve a hop over the fact table the performance takes a hit. The combinations Product - Channel, Channel - Year-Quarter and Product - Year-&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Quarter &lt;/SPAN&gt;exhibit the same behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very interesting. I hope somebody can explain it in more technical detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 18:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867926#M1330798</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867927#M1330800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAybe we can entice &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;to venture an opinion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 02:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867927#M1330800</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-06-18T02:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Explanation for Performance Variance</title>
      <link>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867928#M1330802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;1. "Product" as 2nd dim is faster than "Year-Qtr" and "Channel" as 2nd dim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This does not surprise me. "Product" and "Category" are the same dimension, basically. Together there are only 295 combinations and these can be generated without running through the fact table. Whereas the "Category"-"Channel" combinations can only be found by running through the (large) fact table and creating the necessary lookup-tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Expression #3 is fast&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This does not surprise me either. The dollar expansion is made &lt;EM style="text-decoration: underline;"&gt;before&lt;/EM&gt; the other steps of the chart evaluation, resulting in one single value that is used all over the cube: The evaluation of the Only() function is really not part of the building of the cube.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Why is #2 slower than #1?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I haven't got a clue... I need to ask Håkan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 08:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Explanation-for-Performance-Variance/m-p/867928#M1330802</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-06-18T08:28:57Z</dc:date>
    </item>
  </channel>
</rss>

