<?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: Dynamic Measures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794570#M1211033</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95378"&gt;@eddie_wagt&lt;/a&gt;&amp;nbsp;thanks for the response and for your time.&amp;nbsp; as i said we have about 50 measures and using a pick or if will not be sustainable for us.&lt;BR /&gt;&lt;BR /&gt;our backend solution is to consolidate all the measures in new columns .&amp;nbsp; to illustrate, if we want Measure1 for Dim1 under column1 and Measure2 for Dim2 under same column, we created a new MeasureDisplay1 and save the values of the specific columns per dim.&amp;nbsp; we have 10 different scenarios with over 50 measures across all dimensions.&amp;nbsp; however, since some dims dont have some of the measures, the resulting columns result to only about 16.&amp;nbsp; so we created 16 DisplayMeasures and slot the appropriate measures.&amp;nbsp; of course we also stored the name of the measures in a mapping table to show the user what measure they are viewing for the specific dimension.&lt;/P&gt;&lt;P&gt;this is all on the DM side, so the expression is just sum(DisplayMeasure1) for the first column.&amp;nbsp; avoiding the use of if or pick functions.&lt;/P&gt;&lt;P&gt;still, i was hoping for a front end solution.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 16:48:43 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-03-25T16:48:43Z</dc:date>
    <item>
      <title>Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793697#M1210938</link>
      <description>&lt;P&gt;I have a requirement that i think requires me to save the name of a measure in a field and in a straight table, retrieve the name of the measure, use the retrieved value in an expression.&amp;nbsp; i do have an alternative solution that addresses this requirement on the data model side but im looking for a solution on the frontend side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;to uncomplicate the problem , i have 2 dimensions and 3 measures:&lt;BR /&gt;the first 2 sets of dim values have entries for Measures1 and 2, for these dimensions, Measure3 is irrelevant.&lt;BR /&gt;for the 3rd and 4th dims, Measure1 is irrelevant:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_1-1616504083293.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51668i6B7F085BFCF6107E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_1-1616504083293.png" alt="edwin_1-1616504083293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i created 2 new fields that stores what measures to display.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;so for the 1st 2 dims, i want to display Measures 1 and 2, for the next set, Measures 2 and 3&lt;BR /&gt;my configuration table is shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_2-1616504243820.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51669i882420D1AA45F94A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_2-1616504243820.png" alt="edwin_2-1616504243820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;at the end of everything, i want the following visual:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1616504041513.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51667i8DC3D6A37BF755BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1616504041513.png" alt="edwin_0-1616504041513.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for now please dont worry that this will not make sense to the user.&amp;nbsp; this visual is simplified not to muddle the problem.&lt;BR /&gt;&lt;BR /&gt;you would think that the expression =sum([$(=Only(DisplayMeasure1))]) should suffice.&amp;nbsp; the value for DisplayMeasure1 for dim A will evaluate to Measure1, substitute that, evaluate the sum and done.&amp;nbsp; but no - it appears the phrase ONLY(DisplayMeasure1) is evaluated even before the dimensions are looked at so if no dimensions are selected, the column is blank bec there are multiple values of DisplayMeasure1.&amp;nbsp; to illustrate this:&lt;BR /&gt;&lt;BR /&gt;No selections:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_3-1616504660368.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51670i0F8A0EE51D816137/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_3-1616504660368.png" alt="edwin_3-1616504660368.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;select Dim1=A:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_4-1616504700691.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51671i786F990DCAA0303A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_4-1616504700691.png" alt="edwin_4-1616504700691.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;bec if Dim1=A, only(DisplayMeasure1) is evaluated as Measure1.&amp;nbsp; Ive already tried using aggr by Dim1, Dim2.&amp;nbsp; didnt work&lt;/P&gt;&lt;P&gt;you would say why not use an if statement?&amp;nbsp; yes that will work for this simple example, but my actual requirement has 10 different sets for dimensions with over 50 measures.&amp;nbsp; so that wont work.&lt;/P&gt;&lt;P&gt;as i have said at the start, we solved this using a data model change but what i am looking for is a front end solution.&amp;nbsp; im looking for that sweet brilliant dynamic expression.&amp;nbsp; thanks to anyone who loves a good challenge and gives their time to this.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793697#M1210938</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793716#M1210941</link>
      <description>&lt;P&gt;Actually, I think your issue here is something a tad different from what you think - you're trying to nest aggregation functions by putting an ONLY() inside a SUM(). Qlik doesn't allow this, so you'll have to either aggr() to get around the nested aggregation, or not use the inner Only() (unsure if it's necessary for this to work, I think it wouldn't be but I'm not sure).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 13:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793716#M1210941</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-23T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793735#M1210944</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp; thanks for looking into this.&amp;nbsp; actually it does work - if you look at the attached QVW and:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1616510233727.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51686i39096D702F0F4099/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1616510233727.png" alt="edwin_0-1616510233727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;only(DisplayMeasure) returns "Measure1" and then evaluates the sum.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793735#M1210944</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793736#M1210945</link>
      <description>&lt;P&gt;so for applications where the measure is dedicated to that particular column (off the cuff i could think of a self serve type table) this expression will work fine&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793736#M1210945</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793740#M1210947</link>
      <description>&lt;P&gt;to phrase the problem simply:&amp;nbsp;&lt;BR /&gt;if i have a field that contains the name of another field which is a measure.&amp;nbsp; &amp;nbsp;how do i phrase the expression:&lt;BR /&gt;[MeasureDisplay] field has its value as "Measure1" where Measure1 is the name of a valid field.&amp;nbsp;&lt;BR /&gt;how do i code sum(Measure1) using MeasureDisplay field so that it is dynamic.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793740#M1210947</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793778#M1210950</link>
      <description>&lt;P&gt;You can calculate Only(Field) once in the variable and then calculate Sum of the result, yes. But you can't, on the fly, calculate Sum(Only(Field)) within the context of the table row. That would be a nested aggregation and if you try typing it into the formula editor, you'll get an error. Because your requirement appears to be evaluating within each row (you want it to consider the dimensions), that can't work, I think, even if you were able to get Qlik to evaluate the formula for each row rather than once. Possibly I am misunderstanding the order in which things are being applied, though - perhaps someone else will have a better understanding.&lt;/P&gt;&lt;P&gt;If this isn't too much of a simplification of the original, you could presumably just use if() statements to pick out the correct formula based on the variable?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 16:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793778#M1210950</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-23T16:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793781#M1210952</link>
      <description>&lt;P&gt;im actually not using sum(Only(Field)) - i agree that will not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;im using =sum([$(=only(Field))]).&amp;nbsp; theres a diff&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 16:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793781#M1210952</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793782#M1210953</link>
      <description>&lt;P&gt;besides the QVW already proves it works in a limited sense - just not the one i require.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 16:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1793782#M1210953</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-23T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794442#M1211018</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Is this something you seek? The problem you encounter lies within the fact you want to evaluate two measures in one expression box. Therefore you should do something with the functions pick, match. To make some things easier for you, there is a function in Qlikview that can be handy : GetObjectField.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For making things work I have made a variable: getObject .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, your project can be further enhanced and spiced up, but till then you should have a look if this meets your requirements.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eddie_wagt_0-1616678016906.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51814i593F64CCFD85DF78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="eddie_wagt_0-1616678016906.png" alt="eddie_wagt_0-1616678016906.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Eddie&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794442#M1211018</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2021-03-25T13:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794570#M1211033</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95378"&gt;@eddie_wagt&lt;/a&gt;&amp;nbsp;thanks for the response and for your time.&amp;nbsp; as i said we have about 50 measures and using a pick or if will not be sustainable for us.&lt;BR /&gt;&lt;BR /&gt;our backend solution is to consolidate all the measures in new columns .&amp;nbsp; to illustrate, if we want Measure1 for Dim1 under column1 and Measure2 for Dim2 under same column, we created a new MeasureDisplay1 and save the values of the specific columns per dim.&amp;nbsp; we have 10 different scenarios with over 50 measures across all dimensions.&amp;nbsp; however, since some dims dont have some of the measures, the resulting columns result to only about 16.&amp;nbsp; so we created 16 DisplayMeasures and slot the appropriate measures.&amp;nbsp; of course we also stored the name of the measures in a mapping table to show the user what measure they are viewing for the specific dimension.&lt;/P&gt;&lt;P&gt;this is all on the DM side, so the expression is just sum(DisplayMeasure1) for the first column.&amp;nbsp; avoiding the use of if or pick functions.&lt;/P&gt;&lt;P&gt;still, i was hoping for a front end solution.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794570#M1211033</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-25T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794579#M1211035</link>
      <description>&lt;P&gt;here is a snapshot (not a lot of it) of a prototype we created using the DM solution.&amp;nbsp; this is just a single straight table.&amp;nbsp; the measures are different depending on the dimensions, some have more measures than others and they are blank where the column is not relevant:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edwin_0-1616692211862.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51842i2FF3FDAA834A7AF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="edwin_0-1616692211862.png" alt="edwin_0-1616692211862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794579#M1211035</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-25T17:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794717#M1211061</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just to be sure, I saw the screenshot. I have seen your requirement to solve it front-end. If you want more flexibility and to solve this permanently you have to do some backend work to make this happen. The table I provided you is something fancy that could might work if you put more effort in it. I have solved some of the barriers you dealt with. The problem you face is still not out of the box solvable, because you want to evaluate multiple measures in one column/expression box.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might be a slightly opportunity that you can enhance / develop my solution a bit further. I might even help you, but believe me...the best you can do is solve this in the backend. See example.&amp;nbsp; This is one solution (star model) and you can enhance it by adding expressions to evaluate if necessary. But first step is to model your data differently.&lt;/P&gt;&lt;P&gt;If you definitely want it to solve it front-end than you have to expand the formula in a way that you count per dimension the number of values to determine a generic expression which can be fold out after the pick/match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794717#M1211061</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2021-03-26T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794861#M1211086</link>
      <description>&lt;P&gt;i am aware that this can be solved by pick even using IF statements but i was looking for a more sustainable solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;we will stick to the DM solution for now until we find a simpler front end solution.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;the screenshot is an actual working QV straight table which we also implemented in Qlik Sense.&amp;nbsp; where the driving expression is a simple sum(displayMeasure1) - of course we used an if statement to format the header and totals but the main expression is a simple one.&lt;/P&gt;&lt;P&gt;thanks for your time&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 14:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1794861#M1211086</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-03-26T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Measures</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1795190#M1211123</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am somewhat surprised that you have implemented the solution in Qlik Sense, because the syntax should be the same. As I already mentioned the driving expression does not work. I tested your model in Qlik Sense and you have the same problem in Sense as in Qlikview (the expression works only when you select a dimension). It doesn't matter, but I suspect your datamodel is a bit different than you provided.&lt;/P&gt;&lt;P&gt;If it is working in Sense than it should be working in View.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Eddie&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 07:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Measures/m-p/1795190#M1211123</guid>
      <dc:creator>eddie_wagt</dc:creator>
      <dc:date>2021-03-29T07:09:44Z</dc:date>
    </item>
  </channel>
</rss>

