<?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: Customer gallons - Gain, Loss and net in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3772548#M147406</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;ok, I will check it and let you know status&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 20:12:47 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2024-03-18T20:12:47Z</dc:date>
    <item>
      <title>Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3751784#M146329</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a report with three pages, gallon gains, losses and net.&amp;nbsp; Here are the Gain and Loss pages.&amp;nbsp; I have seperate slicers for Start Date and End Date.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am having problems calculating the Net Gallons as the&amp;nbsp; two slicers are not rendering any results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a solution for two calculations as seen below on the Net page.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Net Est Gal = Est Gallons - Volume Lost TTM (Trailing 12 months)&lt;/P&gt;&lt;P&gt;Net Actual Gal = Total 12 Actual Gal Gained - Volum Lost TTM&lt;/P&gt;&lt;P&gt;I have included a link to the report below.&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!An-c-kQsqoNPgnZb67wKvSw7M4OQ?e=mjU67O" target="_blank"&gt;https://1drv.ms/u/s!An-c-kQsqoNPgnZb67wKvSw7M4OQ?e=mjU67O&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 15:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3751784#M146329</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-08T15:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3752073#M146345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;check &lt;A href="https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-slicers?tabs=powerbi-desktop#sync-and-use-slicers-on-other-pages" target="_blank"&gt;link&lt;/A&gt; for sync visuals / slicer (as you use same slicer for dates on different pages)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 20:31:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3752073#M146345</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-08T20:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3756211#M146547</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I was able to sync the two slicers together using the Sync slicers advanced options, which is handy.&lt;/P&gt;&lt;P&gt;However, this does not resolve my problem.&lt;/P&gt;&lt;P&gt;Both calculations for net gallons&amp;nbsp; contain elements with start and end dates.&amp;nbsp; So when Start and End dates are for the same period they filter each other out.&amp;nbsp; Or said another way, you don't normally have customers who start and end in the same month.&amp;nbsp; Is there a way to handle these calculations that works? Below shows the filtering problems I am having with the Cards for each calculation.&lt;/P&gt;&lt;P&gt;This is a one minute calculation in Excel but not so easy in PBI. I appreciate any help I can get.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:19:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3756211#M146547</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-11T20:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3756249#M146552</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;my "issue" is gallons (I am from Europe), liters or similar is closer to me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you need to filter something for period,&amp;nbsp;&lt;SPAN&gt;like&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;higher than something (some column)&amp;nbsp; AND&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lower than something (some column or another one)&amp;nbsp; simply use FILTER function (if it is in the same table)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 20:46:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3756249#M146552</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-11T20:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3757106#M146578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In measure&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Volume Lost TTM =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Transactions&lt;/SPAN&gt;&lt;SPAN&gt;[Qty]&lt;/SPAN&gt;&lt;SPAN&gt;),&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N&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Customer'&lt;/SPAN&gt;&lt;SPAN&gt;[End Date]&lt;/SPAN&gt;&lt;SPAN&gt;),-&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED is used in definition.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Still, in another measure you use this measure with&amp;nbsp;ALLSELECTED&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Total Lost Gallons =&lt;/SPAN&gt; &lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Customer&lt;/SPAN&gt;&lt;SPAN&gt;[End Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Volume Lost TTM]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is not best practice as&amp;nbsp;&lt;SPAN&gt;ALLSELECTED should be used only in visual as results are impossible to intepret.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try to rewrite&amp;nbsp;Volume Lost TTM measure without ALLSELECTED&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Mar 2024 06:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3757106#M146578</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-12T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764472#M146907</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for your recent post and your suggestions to try.&lt;/P&gt;&lt;P&gt;I have spent many hours attempting changes&amp;nbsp; in the DAX but to no avail.&lt;/P&gt;&lt;P&gt;I wonder if you could provide more detailed assistance or if not perhaps you know of someone else who could help me with this.&lt;/P&gt;&lt;P&gt;I appreciate your time.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764472#M146907</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-14T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764525#M146908</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;I am happy if I could assist you.&lt;/P&gt;
&lt;P&gt;Maybe to start from scratch: what you want to calculate, show, at which grain, per customer...what is ecpected output for some sample input. Let' s go step by step&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:06:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764525#M146908</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-14T21:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764537#M146910</link>
      <description>&lt;P&gt;Sounds good. I am off until Monday so will get back in touch then.&amp;nbsp; thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3764537#M146910</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-14T21:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3772143#M147378</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Ok, starting from the beginnig.&lt;/P&gt;&lt;P&gt;I have a 3 page report.&amp;nbsp; &amp;nbsp;Page 1 is the volume of gas gained, Page 2 is the volume of gas lost and Page 3 is the Net volume which is equal to volume gained - volume lost.&lt;/P&gt;&lt;P&gt;Page 1 Gains&lt;/P&gt;&lt;P&gt;This page&amp;nbsp; contains a table of Account, Start Date, Tank Capacity, Estimated volume gained and 12 month actual volume gained.&lt;/P&gt;&lt;P&gt;Estimated volume gained = Tank Capacity * .8&lt;/P&gt;&lt;P&gt;Total 12 Month Actual Volume Gained (measure) = the acual volume delivered in 12 month period following the Start Date.&lt;/P&gt;&lt;P&gt;There is also a slicer on this page to filter the date range&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two cards included:&lt;/P&gt;&lt;P&gt;first is a card with Sum of Est Volume Gained&lt;/P&gt;&lt;P&gt;and also a card with Total 12 Month Actual Volume Gained.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt; month actual volume =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Transactions'&lt;/SPAN&gt;&lt;SPAN&gt;[Qty]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;=&lt;/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AN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Customer&lt;/SPAN&gt;&lt;SPAN&gt;[Start Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[12 month actual volume]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Page 2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Loss&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Contains a table with Account, End Date, Category and Volume lost TTM (trailing 12 months)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;There is also a slicer with End Date&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and a Card with Total Lost Volume&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volume Lost TTM =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Transactions&lt;/SPAN&gt;&lt;SPAN&gt;[Qty]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt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&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Lost Volume =&lt;/SPAN&gt; &lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Customer&lt;/SPAN&gt;&lt;SPAN&gt;[End Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[Volume Lost TTM]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Page 3 Net&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;There are two text boxes with general descriptions of the formulas needed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Net Est Volume = Est Volume Gained - Total Lost Volume&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Net Actual Volume = Total 12 Actual Volume Gained - Total Lost Volume&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Below there are two cards showing Blank as a result.&amp;nbsp; This is what I need help with.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sum of Net Est Volume&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sum of Net Actual Volume.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;These are both returning blanks.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;There are also two date slicers on this page, one for Start Date and one for End Date.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;Net Est Volume =&lt;/SPAN&gt; &lt;SPAN&gt;Customer&lt;/SPAN&gt;&lt;SPAN&gt;[Est volume Gained]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;[Volume Lost TTM]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Net Actual Volume =&lt;/SPAN&gt; &lt;SPAN&gt;[Total 12 Month Actual Volume Gained]&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;[Volume Lost TTM]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to report is at the bottom&lt;/P&gt;&lt;P&gt;Here is the model.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!An-c-kQsqoNPgndZvouxShWyJYCz?e=Lm359k" target="_blank"&gt;Gain-loss-net for forum v3.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:18:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3772143#M147378</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-18T16:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3772548#M147406</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;ok, I will check it and let you know status&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 20:12:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3772548#M147406</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-18T20:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3774164#M147491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as I checked:&lt;/P&gt;
&lt;P&gt;- visuals on Canvas Net provide some amount when you change Start and End Date- dare these results ok for you?&lt;/P&gt;
&lt;P&gt;Inputs:&lt;/P&gt;
&lt;P&gt;Start Date and End Date = 01.01.2020 (start)&lt;/P&gt;
&lt;P&gt;Start Date and End Date = 05.03.2024&amp;nbsp; (end)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- if you put measures in Customer table in separate columns (similar to your formulas) for debugging purpose, it seems that EndDate column when is Blank create possible issues? Blank values are ok? How it affect calculations? Should't it be some non-blank date, like transaction date or ...&lt;/P&gt;
&lt;P&gt;- did you think about "moving" Start Date and End Date from Customer Table into Transaction table (still think about blank End Date) as Calendar Date is connected to Transactions?&lt;/P&gt;
&lt;P&gt;This way &lt;STRONG&gt;&lt;EM&gt;it could be optio&lt;/EM&gt;&lt;/STRONG&gt;n to easly calculate data for date between period. This should stand for other Customer table columns&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 08:16:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3774164#M147491</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-19T08:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3775711#M147550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I tried using the date range you suggested and although they did produce some results, they were not accurate.&lt;/P&gt;&lt;P&gt;Not every customer will have an end date (date no longer a customer) as if they did the company would have no active customers.&amp;nbsp; So yes, blank values are ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried moving Start Date and End Date to Transactions but it broke all my visuals and would not allow me to use a date range slicer.&amp;nbsp; I didn't think this was a good solution so I discontinued working on that end of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may need a date table for start and end dates but have not had much luck sharing the date table.&lt;/P&gt;&lt;P&gt;Net gallons measures contain start date and end date elements and as a result it looks like the start and end slicers appear to be eliminating any results.&amp;nbsp; The only exception would be&amp;nbsp; if a customer were gained and lost during the specified date range.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't full understand all of what you were trying to say, so I'm sorry if I missed an important point.&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Bud&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, 19 Mar 2024 14:44:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3775711#M147550</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-19T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3775746#M147553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp; is some new version of file I moved Start and End date per Account into Transaction table (this make sense as it seems your calculation need only active customers (with non-blank end date))&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Two new columns in Transaction table (no blanks in CustomerStartDate for&amp;nbsp;CustomerEndDate with IF you can add some dates).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;This way it could be possible to filter for period you want quantity.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Let me know what you think.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CustomerStartDate =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;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&lt;SPAN&gt;[Account]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Transactions&lt;/SPAN&gt;&lt;SPAN&gt;[Account]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Mar 2024 14:59:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3775746#M147553</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-19T14:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3784014#M147816</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I will try what you have suggested and get back to you.&lt;/P&gt;&lt;P&gt;I got pulled off this project but will get back to it soon.&amp;nbsp; Much appreciated. Bud&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 20:37:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3784014#M147816</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-21T20:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3791558#M148155</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I added the two date columns to the transaction table and then substituted Transacttions[CustomerStartDate] and Transactions[CustomerEndDate] for Customer[Start_Date] and Customer[End_Date] in my Measures and Calculated Columns and now the report works perfectly. Thanks for sticking with it, much appreciated.&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:08:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3791558#M148155</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-03-26T13:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Customer gallons - Gain, Loss and net</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3791606#M148160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;I'm really glad it worked.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 13:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-gallons-Gain-Loss-and-net/m-p/3791606#M148160</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-03-26T13:34:30Z</dc:date>
    </item>
  </channel>
</rss>

