<?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: how to avoid creating several measures for all dimension values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1555528#M40071</link>
    <description>&lt;P&gt;Maybe i dont understand the problem completely&lt;/P&gt;&lt;P&gt;Why not just create a line chart with Region as one of the dimensions&lt;/P&gt;&lt;P&gt;and your expression use set analysis to specify the flag and get the percentage&lt;/P&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN&gt;Flag={'Y'}&lt;/SPAN&gt;&amp;gt;}ID)/Count(ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you can share a sample app /data set with desired output i can check further&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 16:04:44 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2019-03-12T16:04:44Z</dc:date>
    <item>
      <title>how to avoid creating several measures for all dimension values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1555487#M40062</link>
      <description>&lt;P&gt;I have a 3-table data model.&amp;nbsp; Table 1 holds ticket data, with structure like&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp;DateCreated&amp;nbsp; &amp;nbsp; &amp;nbsp;Flag&lt;/P&gt;&lt;P&gt;Table 2 holds all of the locations per ticket, with structure like:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; LocationID&lt;/P&gt;&lt;P&gt;There is a one-to-many relationship from Table 1 to Table 2 (i.e., a single ticket can have many locations).&lt;/P&gt;&lt;P&gt;Table 3 holds "lookup data" for all locations, with structure like:&lt;/P&gt;&lt;P&gt;LocationID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Region&lt;/P&gt;&lt;P&gt;(So, there is a many-to-one relationship from Table 2 to Table 3.)&lt;/P&gt;&lt;P&gt;I want to create a line chart of % of tickets over time, by Region.&amp;nbsp; % of tickets = number of tickets where Flag = 'Yes' / total number of tickets.&amp;nbsp; Time is DateCreated.&amp;nbsp; I know that I can create this by creating several measures in my line chart, 1 per Region value.&amp;nbsp; Currently, it's do-able, since there are only about 5 distinct Region values.&amp;nbsp; However, I'd like to avoid this hard-coding approach.&amp;nbsp; Is there another way to do this without hard-coding (i.e., not create several measures)?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1555487#M40062</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2024-11-16T06:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid creating several measures for all dimension values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1555528#M40071</link>
      <description>&lt;P&gt;Maybe i dont understand the problem completely&lt;/P&gt;&lt;P&gt;Why not just create a line chart with Region as one of the dimensions&lt;/P&gt;&lt;P&gt;and your expression use set analysis to specify the flag and get the percentage&lt;/P&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN&gt;Flag={'Y'}&lt;/SPAN&gt;&amp;gt;}ID)/Count(ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you can share a sample app /data set with desired output i can check further&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1555528#M40071</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-03-12T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid creating several measures for all dimension values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1556214#M40291</link>
      <description>&lt;P&gt;I have attached my qvf file.&lt;/P&gt;&lt;P&gt;Note: I denormalized the location dimension into the "locations impacted" table.&amp;nbsp; (I'm not sure if this affects the solution.)&lt;/P&gt;&lt;P&gt;Also, I want to do this not just by region, but by change request type as well.&amp;nbsp; Can you please prescribe a solution for that as well?&amp;nbsp; (I'm not sure if the solution is different for each, since locations are on a separate table, whereas change request type is on the main fact table.)&lt;/P&gt;&lt;P&gt;My bottom visualizations are correct, but they are by the multiple measures solution method, which I don't like because it's all hard-coding dimension values.&amp;nbsp; (What if my dimension values change?)&amp;nbsp; My top visualizations are clearly wrong, but I want their solution method (i.e., 2 dimensions, 1 measure).&amp;nbsp; How can I correct my top visualizations to look like the bottom visualizations?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 19:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1556214#M40291</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2019-03-13T19:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid creating several measures for all dimension values</title>
      <link>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1556834#M40483</link>
      <description>&lt;P&gt;I figured out the solution to my problem.&amp;nbsp; I want my "percent affected" measure to be:&lt;/P&gt;&lt;P&gt;number of tickets created (for the given month, for the given ticket type) / number of tickets created (for the given month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I have 2 dimensions (and 1 measure), my denominator is effectively the same as my numerator (explaining why all values are 100 %).&amp;nbsp; So, I had to tell the denominator to "ignore" the "ticket type" dimension.&amp;nbsp; I achieved this with the TOTAL parameter, as follows:&lt;/P&gt;&lt;PRE&gt;Count(
	Total &amp;lt;$(Date_Level)&amp;gt;
[Major Incident ID]
)&lt;/PRE&gt;&lt;P&gt;$(Date_Level) is how I trick Qlik Sense into using my master drilldown dimension, as you can't really use master dimensions in expressions / measures in Qlik Sense.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 20:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/how-to-avoid-creating-several-measures-for-all-dimension-values/m-p/1556834#M40483</guid>
      <dc:creator>skyline01</dc:creator>
      <dc:date>2019-03-14T20:59:13Z</dc:date>
    </item>
  </channel>
</rss>

