<?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: SASA Viya (Explore &amp;amp; Visualise) - incorrect division answer in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865458#M17048</link>
    <description>&lt;P&gt;Thank you for sharing the screen captures!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is always a little difficult to process all of the information in a thread like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Earlier you said,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;The problem I encountered arises when I had to calculate the net profit( which is the calculated item 3) by using OrderTotal less Total Expenses which is made up of 4 cost items (Product, Marketing, Distribution &amp;amp; Sales).&lt;/SPAN&gt;
&lt;P&gt;I was able to calculate gross profit without using any aggregate measures; the only difference is that Gross Profit is calculated using OrderTotal Less Product Cost.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you mention a problem calculating net profit, is this the same issue you were having earlier calculating the percentage? Or is this a different issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiplication and division calculated items can show confusing results when they are aggregated in a visualization. (Addition and subtraction actually can also give confusing results if there are missing values, because for example &lt;FONT face="courier new,courier"&gt;100 + (missing)&lt;/FONT&gt; returns (missing) and that 100 value is not accounted for in the calculated item value.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to calculate the net profit % in a way that results in a measure instead of an aggregated measure, one workaround would be to pre-calculate the value as part of your data preparation using SAS programming language, SQL syntax, etc.&amp;nbsp; &lt;A href="https://support.sas.com/kb/25/237.html" target="_self"&gt;This example&lt;/A&gt; might be helpful?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible that there are other workarounds to try, I am not a great expert in this area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 15:21:56 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2023-03-21T15:21:56Z</dc:date>
    <item>
      <title>SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865164#M17035</link>
      <description>&lt;P&gt;Hi, SAS Viya is giving me an incorrect answer for a simple division problem.&lt;/P&gt;&lt;P&gt;Referring to the List Table, there are 3 columns - Calculated Item 1,&amp;nbsp;Calculated Item 2 &amp;amp;&amp;nbsp;Calculated Item 3.&lt;/P&gt;&lt;P&gt;Calculated item 3 = Calculated Item 2 / Calculated Item 1) in percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the 1st row as an example,&lt;/P&gt;&lt;P&gt;Calculated Item 1 = 290,397&lt;/P&gt;&lt;P&gt;Calculated Item 2 = 169,804.74&lt;/P&gt;&lt;P&gt;Calculated Item 3 = 38.50% (which is incorrect. Correct answer should be 58.47%).&lt;/P&gt;&lt;P&gt;I have tried changing the aggregation to Sum as well as Average but none works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if someone can tell me what went wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated Item 3.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81761i47E9D122E7C2C73E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calculated Item 3.JPG" alt="Calculated Item 3.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated Item 2.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81763iB45418CEC905232C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calculated Item 2.JPG" alt="Calculated Item 2.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculated Item 1.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81764iEF401978E1C5C8C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Calculated Item 1.JPG" alt="Calculated Item 1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Item Details.JPG" style="width: 413px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81762i9B1838AE439B5055/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Item Details.JPG" alt="Data Item Details.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List Table.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81765i447DD9AFB90AAB28/image-size/large?v=v2&amp;amp;px=999" role="button" title="List Table.JPG" alt="List Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 10:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865164#M17035</guid>
      <dc:creator>KSNG</dc:creator>
      <dc:date>2023-03-20T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865201#M17036</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, all calculations are performed on a row-by-row basis (based on the rows in your data rather than the aggregated values displayed in your list table object.) If your table does not display detail data, then the numbers can appear not to match up because of the way they are aggregated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try changing your expression for item 3 to be like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sum [_ByGroup_] ('Calculated Item 2'n) / Sum [_ByGroup_] ('Calculated Item 1'n)&lt;/PRE&gt;
&lt;P&gt;I think this should work if the aggregations for all of the items match. When I was testing this I got REALLY confused because one of my measures had its aggregation as Count and the results were really bizarre!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":astonished_face:"&gt;😲&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let us know if that helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 13:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865201#M17036</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-20T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865263#M17038</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;I tried recreating using your suggestion and it worked!&lt;/P&gt;&lt;P&gt;However the measures are now being classified as Aggregated Measure and cannot be use to carry out other analytics such as linear regression and forecasting.&lt;/P&gt;&lt;P&gt;Do you have any other suggestions on how I might be able to work around it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I encountered arises when I had to calculate the net profit( which is the calculated item 3) by using OrderTotal less Total Expenses which is made up of 4 cost items (Product, Marketing, Distribution &amp;amp; Sales).&lt;/P&gt;&lt;P&gt;I was able to calculate gross profit without using any aggregate measures; the only difference is that Gross Profit is calculated using OrderTotal Less Product Cost.&lt;/P&gt;&lt;P&gt;Do you have any idea why I was able to calculate gross profit and not net profit?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865263#M17038</guid>
      <dc:creator>KSNG</dc:creator>
      <dc:date>2023-03-20T16:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865278#M17039</link>
      <description>&lt;P&gt;Hi KS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your Total Expenses a calculated item? Can you show what that expression looks like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865278#M17039</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-20T17:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865437#M17047</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologize for the slow response.&lt;/P&gt;&lt;P&gt;Due to the time zone difference, it might take me a while to get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Expense is a calculated item.&lt;/P&gt;&lt;P&gt;I tried calculating it in 2 ways,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;1st method&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Adding up the four individual cost together.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KSNG_1-1679406741064.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81817iA78D1B1A414051AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KSNG_1-1679406741064.png" alt="KSNG_1-1679406741064.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then using OrderTotal less Total Expenses.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KSNG_2-1679406794797.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81818iD8659BB3B810B021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KSNG_2-1679406794797.png" alt="KSNG_2-1679406794797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;2nd Method&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Using OrderTotal less the 4 individual cost in 1 step.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KSNG_3-1679407079423.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81819i7C552C2EC72E2EF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KSNG_3-1679407079423.png" alt="KSNG_3-1679407079423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Final Step&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I then use the net profit calculated from both methods to divide against the OrderTotal.&lt;/P&gt;&lt;P&gt;No matter which method was used, the net profit amount will be correct but the net profit percentage will be wrong.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KSNG_4-1679407191958.png" style="width: 408px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81820iE78C9EFE29F44128/image-dimensions/408x131?v=v2" width="408" height="131" role="button" title="KSNG_4-1679407191958.png" alt="KSNG_4-1679407191958.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were asking about how detailed is my dataset.&lt;/P&gt;&lt;P&gt;I have provided a sample screenshot if it helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KSNG_5-1679407684564.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81821iB40C8B217F12ECC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KSNG_5-1679407684564.png" alt="KSNG_5-1679407684564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it help if I provide the source file?&lt;/P&gt;&lt;P&gt;The dataset is very big (total 650mb) but I can extract 10% of it (65mb) for you to test if it helps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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 Mar 2023 14:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865437#M17047</guid>
      <dc:creator>KSNG</dc:creator>
      <dc:date>2023-03-21T14:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865458#M17048</link>
      <description>&lt;P&gt;Thank you for sharing the screen captures!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is always a little difficult to process all of the information in a thread like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Earlier you said,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;The problem I encountered arises when I had to calculate the net profit( which is the calculated item 3) by using OrderTotal less Total Expenses which is made up of 4 cost items (Product, Marketing, Distribution &amp;amp; Sales).&lt;/SPAN&gt;
&lt;P&gt;I was able to calculate gross profit without using any aggregate measures; the only difference is that Gross Profit is calculated using OrderTotal Less Product Cost.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you mention a problem calculating net profit, is this the same issue you were having earlier calculating the percentage? Or is this a different issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Multiplication and division calculated items can show confusing results when they are aggregated in a visualization. (Addition and subtraction actually can also give confusing results if there are missing values, because for example &lt;FONT face="courier new,courier"&gt;100 + (missing)&lt;/FONT&gt; returns (missing) and that 100 value is not accounted for in the calculated item value.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to calculate the net profit % in a way that results in a measure instead of an aggregated measure, one workaround would be to pre-calculate the value as part of your data preparation using SAS programming language, SQL syntax, etc.&amp;nbsp; &lt;A href="https://support.sas.com/kb/25/237.html" target="_self"&gt;This example&lt;/A&gt; might be helpful?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible that there are other workarounds to try, I am not a great expert in this area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 15:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865458#M17048</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-21T15:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865463#M17049</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;Yes, it is the same problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was just trying to simplify the problem by using a generic header (Calculated Item 1,2,3) instead of bogging anyone down with the actual variables (i.e. OrderTotal).&lt;/P&gt;&lt;P&gt;I had to start quoting the actual variable name when we started to talk in detail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You bought up a very good point about missing data or some incorrect data messing up the calculations.&lt;/P&gt;&lt;P&gt;However, if it is a missing data issue, would you say that it will affect the aggregated measure as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just a beginner using SAS Viya and I am very thankful for your help and inputs. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will take a look at the example but I am not very confident of doing coding in SAS (or anywhere) though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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 Mar 2023 15:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865463#M17049</guid>
      <dc:creator>KSNG</dc:creator>
      <dc:date>2023-03-21T15:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: SASA Viya (Explore &amp; Visualise) - incorrect division answer</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865496#M17050</link>
      <description>&lt;P&gt;I believe that the aggregated measure should not be affected by the missing value issue, at least for Sum aggregation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The missing value problem can be handled in different ways. You could filter your objects or even the data source to hide the missing values. You could add IF/ELSE logic to your calculated items that replaces missing values with zeroes. You could just add a Text object to your report that explains the issue. For a scientific or academic audience, working around / hiding the missing values might not be acceptable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides calculating your percent of total in the data preparation stage, you could &lt;A href="https://documentation.sas.com/doc/en/vacdc/v_018/vareportdata/n1o2pvak2xw7jln13a2mxkytdmm4.htm" target="_self"&gt;create an aggregated data source&lt;/A&gt;&amp;nbsp;as a workaround. Aggregated data sources use extra memory and cause extra processing, so they are not recommended for large data and for production environments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SASA-Viya-Explore-amp-Visualise-incorrect-division-answer/m-p/865496#M17050</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-21T17:13:01Z</dc:date>
    </item>
  </channel>
</rss>

