<?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: Cumulative Total data points with no data (0s) display as the maximum issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633918#M140564</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thank you for the reply, the video was great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cumulative total overall is fixed,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However Week 0 is showing a total of 18171.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But when I add in my legend, it seems to be combining all of them in their weird way and inflating the totals. This problem is solved when I single-in on just one of these but the goal is to have them all on the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I am also noticing the issue of when a legend group doesnt sell a ticket within "0 weeks out" their line will stop at the last week they sold. Is there a way to always include a final number on week 0?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 18:42:34 GMT</pubDate>
    <dc:creator>jdoehrman</dc:creator>
    <dc:date>2024-01-11T18:42:34Z</dc:date>
    <item>
      <title>Cumulative Total data points with no data (0s) display as the maximum issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633797#M140559</link>
      <description>&lt;P&gt;I am trying to develop a Ticket Sales cumulative line graph sectioned out by how many weeks before the event the tickets were bought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following DAX command to get the cumulative total.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the graph that results from this measure.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that appears is the data points of 0 display as the maximum, or what is known as the final total at 0 Weeks Out from the event. What is even more confusing is that the cumulative total measure recognizes those data points as 0s because let's say the final total is 100; those 0s show up as 100 but the measure does not count them because it knows they are 0s.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem is even more apparent when I insert a legend.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;All of these spikes are weeks where no tickets were sold, and instead of maintaining the past week's total, they spike to the maximum (final total) and are not included in the measure's calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also considered excluding these data points that spike, since they would be 0 anyway, but there are over 1500 that would need to be excluded and after 50, PowerBI gives me an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything I can include in my DAX command to make these "spikes" smooth out and carry over the past week's total?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:24:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633797#M140559</guid>
      <dc:creator>jdoehrman</dc:creator>
      <dc:date>2024-01-11T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total data points with no data (0s) display as the maximum issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633876#M140563</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="673210" data-lia-user-login="jdoehrman" class="lia-mention lia-mention-user"&gt;jdoehrman&lt;/a&gt;&amp;nbsp;Looks like a single table data model and in that case CALCULATE will cause you trouble. Use a No CALCULATE approach:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/Better-Running-Total/m-p/2755666#M885" target="_blank"&gt;Better Running Total - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div data-video-id="https://youtu.be/meh3OkgFYfc" data-video-remote-vid="https://youtu.be/meh3OkgFYfc" class="lia-video-container lia-media-is-center lia-media-size-medium"&gt;&lt;iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fmeh3OkgFYfc%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dmeh3OkgFYfc&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fmeh3OkgFYfc%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" allowfullscreen="" style="max-width: 100%"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 16:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633876#M140563</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-01-11T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total data points with no data (0s) display as the maximum issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633918#M140564</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thank you for the reply, the video was great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cumulative total overall is fixed,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However Week 0 is showing a total of 18171.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But when I add in my legend, it seems to be combining all of them in their weird way and inflating the totals. This problem is solved when I single-in on just one of these but the goal is to have them all on the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I am also noticing the issue of when a legend group doesnt sell a ticket within "0 weeks out" their line will stop at the last week they sold. Is there a way to always include a final number on week 0?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 18:42:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3633918#M140564</guid>
      <dc:creator>jdoehrman</dc:creator>
      <dc:date>2024-01-11T18:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total data points with no data (0s) display as the maximum issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3642871#M141041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="673210" data-lia-user-login="jdoehrman" class="lia-mention lia-mention-user"&gt;jdoehrman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Better RT = 
    VAR __Date = MAX('Table'[Bought_Weeks_Out])
    VAR __Table = FILTER(ALLSELECTED('Table'),[legend]=MAX('Table'[legend]) &amp;amp;&amp;amp; [Bought_Weeks_Out] &amp;gt;= __Date)
RETURN
    SUMX(__Table,COUNT('Table'[ticket_id]))&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 07:39:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-data-points-with-no-data-0s-display-as-the/m-p/3642871#M141041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-17T07:39:38Z</dc:date>
    </item>
  </channel>
</rss>

