<?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: percentage not adding up when selected multiple dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842277#M90829</link>
    <description>&lt;P&gt;hello i do have a relationship with the table and date table,&lt;BR /&gt;but it still didnt work for some reason&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 10:51:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-14T10:51:32Z</dc:date>
    <item>
      <title>percentage not adding up when selected multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842048#M90819</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;i have a measure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Percentage =
VAR value1 = Sum(Value1[total])
VAR value2 = Sum(Value2[total])
Return
value2/value1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say for date1 on date slicer&lt;/P&gt;&lt;P&gt;value1 = 200,000&lt;BR /&gt;value2 =50,000&lt;BR /&gt;so percentage = 50000/200000 = 0.25&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;say for date2 on date slicer&lt;/P&gt;&lt;P&gt;value1 = 300,000&lt;BR /&gt;value2 =100000&lt;BR /&gt;so percentage = 100000/300000 = 0.33&lt;BR /&gt;&lt;BR /&gt;when i select date1 and date2 together,&amp;nbsp;&lt;BR /&gt;the result is 0.375 because it sums up value1 to 150,000 and value2 to 400,000 so 150000/400000 = 0.375&lt;BR /&gt;&lt;BR /&gt;my desired result is to sum up the 2 percentage from date1 and date 2&lt;BR /&gt;&lt;BR /&gt;so 0.25 + 0.33 = 0.58&lt;BR /&gt;&lt;BR /&gt;how can i acheive that?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:32:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842048#M90819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T09:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: percentage not adding up when selected multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842255#M90826</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Create a measure like , Assuming we have common date table in this case &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(Values(Date[date]), calculate(divide(Sum(Value1[total]),&amp;nbsp;Sum(Value2[total]) )))&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 10:37:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842255#M90826</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-14T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: percentage not adding up when selected multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842277#M90829</link>
      <description>&lt;P&gt;hello i do have a relationship with the table and date table,&lt;BR /&gt;but it still didnt work for some reason&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 10:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842277#M90829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T10:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: percentage not adding up when selected multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842294#M90833</link>
      <description>&lt;P&gt;it did ot work please check the other one&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Percentage-not-adding-up-when-selecting-mutliple-dates-on-slicer/td-p/2842283" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Percentage-not-adding-up-when-selecting-mutliple-dates-on-slicer/td-p/2842283&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;this is my exact measure and calculation i want to use&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 11:01:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2842294#M90833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-14T11:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: percentage not adding up when selected multiple dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2845711#M91057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please add [Percentage] measure into SUMX() expression instead of the measure code.&lt;/P&gt;
&lt;P&gt;You new measure should calculate based on&amp;nbsp;[Percentage] measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Percentage =
SUMX ( VALUES ( Date[date] ), [Percentage] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 06:57:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/percentage-not-adding-up-when-selected-multiple-dates/m-p/2845711#M91057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-17T06:57:21Z</dc:date>
    </item>
  </channel>
</rss>

