<?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: Nested expressions in measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140496#M92736</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6152"&gt;@Oleg_Troyansky&lt;/a&gt;&amp;nbsp;It works as I needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 18:34:19 GMT</pubDate>
    <dc:creator>pgloc2020</dc:creator>
    <dc:date>2023-11-22T18:34:19Z</dc:date>
    <item>
      <title>Nested expressions in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2139974#M92691</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have a publication data where there are 1 or more author on a book and also 1 or more claimant on that same book.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to create a bar chart to group of author/claimants based on their count.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example, data is looking like below table-&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book Name&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Authors&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Claimant&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book A&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book B&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book C&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book C&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book D&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book D&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book E&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book E&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book F&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book F&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book F&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book G&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book G&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="102"&gt;
&lt;P&gt;Book G&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="72"&gt;
&lt;P&gt;N&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="67"&gt;
&lt;P&gt;Y&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In above example, we can see that Book A has 1 author and 2 claimants, Book B has 5 authors and 2 claimants, Book C has 1 author and 2 claimants, Book D, and E has 2 authors and 2 claimant and book F and G has 2 authors and 3 claimants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to create a bar chart to show the counts of books based on the combination of author/claimant . Like total counts of books&amp;nbsp;where there are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;1 author / 1 claimant&lt;/LI&gt;
&lt;LI&gt;2 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;3 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;4 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;5 authors / 1 claimant&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I have created a bar chart using 2 measure which shows all combinations together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pgloc2020_0-1700592925434.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120349iA00779DE9B62C4DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pgloc2020_0-1700592925434.png" alt="pgloc2020_0-1700592925434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To count authors/claimants,&amp;nbsp; I used expression&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=count({&amp;lt;AUTHOR_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=count({&amp;lt;CLAIMANT_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&lt;/P&gt;
&lt;P&gt;But how I can group all 1 author / 1 claimant and 2 authors / 1 claimant and so on instead of spreading it out like I have in the bar chart screenshot.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not even sure if it is possible in Bar chart? Any suggestions how I can achieve the desired result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2139974#M92691</guid>
      <dc:creator>pgloc2020</dc:creator>
      <dc:date>2023-11-21T19:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nested expressions in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140400#M92727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, this can be done in a bar chart, with the use of the function AGGR().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, you create a calculated Dimension with the following formula:&lt;/P&gt;
&lt;P&gt;AGGR(&lt;/P&gt;
&lt;P&gt;count({&amp;lt;AUTHOR_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&amp;nbsp; &amp;amp; '/' &amp;amp;&amp;nbsp;count({&amp;lt;CLAIMANT_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&lt;/P&gt;
&lt;P&gt;, BOOK_NAME)&lt;/P&gt;
&lt;P&gt;That will generate all the combinations of # Authors and # Claimants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in the measure, you simply count Books with the prefix DISTINCT:&lt;/P&gt;
&lt;P&gt;count(DISTINCT&amp;nbsp;BOOK_NAME)&lt;/P&gt;
&lt;P&gt;And Voila - you get a bar chart with all the combinations of counts and the count of books.&lt;/P&gt;
&lt;P&gt;To learn these advanced techniques, check out my own book &lt;A href="https://amzn.to/49LXDsM" target="_blank" rel="noopener"&gt;QlikView Your Business&lt;/A&gt;. Even though it was written for QlikView, all the techniques and methodologies remain true in Qlik Sense.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140400#M92727</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2023-11-22T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested expressions in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140448#M92731</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6152"&gt;@Oleg_Troyansky&lt;/a&gt;&amp;nbsp;I got the distinct combination of Author and Claimants as follow in a bar chart-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pgloc2020_0-1700668968712.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120431i6160A9AE6390F4BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pgloc2020_0-1700668968712.png" alt="pgloc2020_0-1700668968712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp; Iam trying to see only and only the following combinations and rest counts should display as "Others"&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;1 author / 1 claimant&lt;/LI&gt;
&lt;LI&gt;2 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;3 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;4 authors / 1 claimant&lt;/LI&gt;
&lt;LI&gt;5 authors / 1 claimant&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I used the limitation function but still not able to eliminate few combinations like 2/2, 3/3-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pgloc2020_1-1700669075663.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120432i735480155846DF52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pgloc2020_1-1700669075663.png" alt="pgloc2020_1-1700669075663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to show the specific combination in X axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140448#M92731</guid>
      <dc:creator>pgloc2020</dc:creator>
      <dc:date>2023-11-22T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nested expressions in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140451#M92732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes, you can do that by adding a condition to your calculated dimension formula, something like this:&lt;/P&gt;
&lt;P&gt;AGGR(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(&amp;nbsp;&amp;nbsp;count({&amp;lt;CLAIMANT_FLAG = {'Y'}&amp;gt;} BOOK_NAME)=1 ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count({&amp;lt;AUTHOR_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&amp;nbsp; &amp;amp; '/' &amp;amp;&amp;nbsp;count({&amp;lt;CLAIMANT_FLAG = {'Y'}&amp;gt;} BOOK_NAME)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , 'OTHERS')&lt;/P&gt;
&lt;P&gt;, BOOK_NAME)&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140451#M92732</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2023-11-22T16:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested expressions in measure</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140496#M92736</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6152"&gt;@Oleg_Troyansky&lt;/a&gt;&amp;nbsp;It works as I needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 18:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-expressions-in-measure/m-p/2140496#M92736</guid>
      <dc:creator>pgloc2020</dc:creator>
      <dc:date>2023-11-22T18:34:19Z</dc:date>
    </item>
  </channel>
</rss>

