<?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: Create a Pie Chart using measures in different columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479173#M100565</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/311398"&gt;@AsifRahman&lt;/a&gt;&amp;nbsp; If you want to do it dynamically, it is better to convert your data into properly structured data using crosstable approach&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 14:53:40 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-09-02T14:53:40Z</dc:date>
    <item>
      <title>Create a Pie Chart using measures in different columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479037#M100550</link>
      <description>&lt;P&gt;I have a table like this:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="4" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD width="64" height="19" class="xl63" style="height: 14.4pt; width: 48pt;"&gt;Month&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Cat1&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Cat2&lt;/TD&gt;
&lt;TD width="64" class="xl63" style="border-left: none; width: 48pt;"&gt;Cat3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.4pt; border-top: none;"&gt;Jan&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.4pt; border-top: none;"&gt;Feb&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.4pt; border-top: none;"&gt;Mar&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.4pt; border-top: none;"&gt;Apr&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.4pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.4pt; border-top: none;"&gt;May&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;35&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would like to create a pie chart usig row Month of May, like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AsifRahman_0-1725180326110.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171159i4C17DD2122120642/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AsifRahman_0-1725180326110.png" alt="AsifRahman_0-1725180326110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to do dynamically? Since my data model is already complex, cant pivot the data while loading.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 08:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479037#M100550</guid>
      <dc:creator>AsifRahman</dc:creator>
      <dc:date>2024-09-01T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pie Chart using measures in different columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479172#M100564</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the valuelist function, create a list of synthetic values for your dimension, and from them return your measure values.&lt;/P&gt;
&lt;P&gt;My example according to your data looks like this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SyntheticDimensionFunctions/valuelist.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SyntheticDimensionFunctions/valuelist.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=ValueList('CAT1','CAT2','CAT3')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;As a preference, using the pick function with match, I return the measure according to the sequence of listed values. Note that you can also achieve the same result using the if function:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;pick(match(ValueList('CAT1','CAT2','CAT3'),'CAT1','CAT2','CAT3'), sum({&amp;lt;Month={'May'}&amp;gt;}Cat1), sum({&amp;lt;Month={'May'}&amp;gt;}Cat2), sum({&amp;lt;Month={'May'}&amp;gt;}Cat3))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;See that I did it according to your data, so the value for May is fixed. I hope this helps you achieve your result.&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="MatheusC_0-1725288441683.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171193i2EBA93713D6FE89A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MatheusC_0-1725288441683.png" alt="MatheusC_0-1725288441683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;- Regards Matheus&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479172#M100564</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-09-02T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pie Chart using measures in different columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479173#M100565</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/311398"&gt;@AsifRahman&lt;/a&gt;&amp;nbsp; If you want to do it dynamically, it is better to convert your data into properly structured data using crosstable approach&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2024/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/crosstable.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479173#M100565</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-02T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Pie Chart using measures in different columns</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479279#M100579</link>
      <description>&lt;P&gt;Thanks man. Worked like a charm!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 08:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-Pie-Chart-using-measures-in-different-columns/m-p/2479279#M100579</guid>
      <dc:creator>AsifRahman</dc:creator>
      <dc:date>2024-09-03T08:39:29Z</dc:date>
    </item>
  </channel>
</rss>

