<?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 Best Way to Create a Dynamic Table Builder in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Create-a-Dynamic-Table-Builder/m-p/1581744#M739548</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I want the user to be able to build a dynamic table.&amp;nbsp; The dimensions are relatively easy, as I have them loaded in their own 1 field table.&amp;nbsp; User selects which ones they want and I use the SubStringCount as the calculation condition for the possible dimensions.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As far as the expressions, this gets a bit tricky.&amp;nbsp; In general they can choose to calculate two different fields (Lets say Sales and Commission).&amp;nbsp; You could break those into about 6 different categories, which I all have coded into different variables (e.g: vSumSalesA, vSumSalesB, vSumComA, vSumComB).&amp;nbsp; &amp;nbsp;The user also might even be interested one level farther.&amp;nbsp; Possibly they want the average type A sales.. or they want the % of Type A sales vs All Sales.&amp;nbsp; &amp;nbsp;So if they want the percent its gotta be vSumSalesA / vSumSalesTotal, but if they want the average it might be vSumSalesA / vTransactionCount.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original thought was to use 10 variables to store up to 10 user selections.&amp;nbsp; I used SubField to find the first selected metric, the second selected metric, and so forth.&amp;nbsp; This gives me the "Expression Name", which I then feed into a Pick(Match()) variable which returns the expression I need.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Pick(Match([USERINPUT],[EXPRESSION NAMES LIST])[EXPRESSION VARIABLES LIST])&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The problem is since everything is happening in real time the table is getting confused and not calculating correctly.&amp;nbsp; Even if it did, it's still very slow.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Long story short, there's probably many different ways to do this, but I have no clue what might be the best and perform the fastest.&amp;nbsp; Many of my users will probably have basic Qlikview navigation skills, but I don't want them to have to use Set Analysis to build a custom table.&amp;nbsp; I attached a few pictures.&amp;nbsp; The "Create Table" and "New Table" are not currently relevant.&amp;nbsp; I thought I could use them to basically hold the calculation of the table until all selections have been made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CustomTableExp.PNG" style="width: 667px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12276i5220DEA306783F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustomTableExp.PNG" alt="CustomTableExp.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CustomTable.PNG" style="width: 965px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12277i16301001B08C9822/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustomTable.PNG" alt="CustomTable.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or ideas are appreciated!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:50:33 GMT</pubDate>
    <dc:creator>Jagsfan82</dc:creator>
    <dc:date>2024-11-16T20:50:33Z</dc:date>
    <item>
      <title>Best Way to Create a Dynamic Table Builder</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Create-a-Dynamic-Table-Builder/m-p/1581744#M739548</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I want the user to be able to build a dynamic table.&amp;nbsp; The dimensions are relatively easy, as I have them loaded in their own 1 field table.&amp;nbsp; User selects which ones they want and I use the SubStringCount as the calculation condition for the possible dimensions.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As far as the expressions, this gets a bit tricky.&amp;nbsp; In general they can choose to calculate two different fields (Lets say Sales and Commission).&amp;nbsp; You could break those into about 6 different categories, which I all have coded into different variables (e.g: vSumSalesA, vSumSalesB, vSumComA, vSumComB).&amp;nbsp; &amp;nbsp;The user also might even be interested one level farther.&amp;nbsp; Possibly they want the average type A sales.. or they want the % of Type A sales vs All Sales.&amp;nbsp; &amp;nbsp;So if they want the percent its gotta be vSumSalesA / vSumSalesTotal, but if they want the average it might be vSumSalesA / vTransactionCount.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original thought was to use 10 variables to store up to 10 user selections.&amp;nbsp; I used SubField to find the first selected metric, the second selected metric, and so forth.&amp;nbsp; This gives me the "Expression Name", which I then feed into a Pick(Match()) variable which returns the expression I need.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Pick(Match([USERINPUT],[EXPRESSION NAMES LIST])[EXPRESSION VARIABLES LIST])&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The problem is since everything is happening in real time the table is getting confused and not calculating correctly.&amp;nbsp; Even if it did, it's still very slow.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Long story short, there's probably many different ways to do this, but I have no clue what might be the best and perform the fastest.&amp;nbsp; Many of my users will probably have basic Qlikview navigation skills, but I don't want them to have to use Set Analysis to build a custom table.&amp;nbsp; I attached a few pictures.&amp;nbsp; The "Create Table" and "New Table" are not currently relevant.&amp;nbsp; I thought I could use them to basically hold the calculation of the table until all selections have been made.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CustomTableExp.PNG" style="width: 667px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12276i5220DEA306783F52/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustomTableExp.PNG" alt="CustomTableExp.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CustomTable.PNG" style="width: 965px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12277i16301001B08C9822/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustomTable.PNG" alt="CustomTable.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or ideas are appreciated!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Create-a-Dynamic-Table-Builder/m-p/1581744#M739548</guid>
      <dc:creator>Jagsfan82</dc:creator>
      <dc:date>2024-11-16T20:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Best Way to Create a Dynamic Table Builder</title>
      <link>https://community.qlik.com/t5/QlikView/Best-Way-to-Create-a-Dynamic-Table-Builder/m-p/1582209#M739549</link>
      <description>&lt;P&gt;As I thought about this over the weekend, my current plan is to build a sort of mapping table for my expressions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//PSEUDOCODE

//DEFINE VARIABLES
set vSumOnlineSales = Sum({Type=ONLINE} Sales)
Etc.... //Repeat as needed

QUALIFY
CustExp_1:
No, Metric Name, Variable
1,Sum of Online Sales, vSumOnlineSales
Etc... //Repeat as needed

CustExp_2:
No, Metric Name, Variable 
Etc... // Repeat for the number of custom variables needed&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I can then walk the user through selected Expression 1, Expression 2, etc... using list boxes of the Name.&amp;nbsp; I'll then use "GetSelectedCount(CustExp_1.No)" as the expression condition.&amp;nbsp; I can use CustExp_1.Variable as the expression (expanded to function correctly) since there will only be one selection for each table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My concerns if anyone has any thoughts on are:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This should work well from a performance standpoint (I think?), but&amp;nbsp; I do wonder if having 10 extra floating tables in the model is a problem. I assume not since they will only be 3 fields and 30ish expressions.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I also don't love having the user scroll through 30 (or potentially more as the solution grows) pre-built expressions.&amp;nbsp; I was considering adding additional fields that can act as a filter.&amp;nbsp; For example Sum of Online Sales would qualify as "TYPE = ONLINE" and "AGGREGATION = SUM" and "MEASURE = SALES".&amp;nbsp; While selecting which expressions they want they could click on any of those to show all Online or sum or sales expressions.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All-in-all i don't think there's a perfect solution, but my current thought is this would be the best as far as implementation, maintenance and updating, performance, and user experience.&amp;nbsp; Any thoughts otherwise or counter-arguments would be appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Best-Way-to-Create-a-Dynamic-Table-Builder/m-p/1582209#M739549</guid>
      <dc:creator>Jagsfan82</dc:creator>
      <dc:date>2019-05-20T13:10:55Z</dc:date>
    </item>
  </channel>
</rss>

