<?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: Need a urgent help on DAX that calculates backwards based on total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3733027#M145483</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652678" data-lia-user-login="v-weiyan1-msft" class="lia-mention lia-mention-user"&gt;v-weiyan1-msft&lt;/a&gt;&amp;nbsp;, Thanks for replying to my message quickly. it is almost similar what you provided but I am attaching an excel to give you a better understanding&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the excel there are 3 columns in that column1 dates in the main table which are connected to calender table and column2 is a measure and column 3 is the based on column 2 sum.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Cag9VHaLOxddbNrnzpFjYppz5T_sBDoE/edit?usp=sharing&amp;amp;ouid=107184863623556308569&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1Cag9VHaLOxddbNrnzpFjYppz5T_sBDoE/edit?usp=sharing&amp;amp;ouid=107184863623556308569&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to use this new measure in a line graph based on dates to show the quantity present in previous dates. The business wants to visualize this information. Can you please help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 09:02:20 GMT</pubDate>
    <dc:creator>Srinivas904</dc:creator>
    <dc:date>2024-02-29T09:02:20Z</dc:date>
    <item>
      <title>Need a urgent help on DAX that calculates backwards based on total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3730863#M145398</link>
      <description>&lt;P&gt;I need a urgent help I am having a requirement based on whatever we selected year, month &amp;amp; date i am having a measure which show untill yestarday date&lt;/P&gt;&lt;P&gt;example : Below i have selected 26/01/2024 so it shows untill 25/01/2024 data so what i need is based on this total i need backward calcualtion the sum of the below table is 120 so i need 120+ -33 on 25/01 and again the taotal 120+(-33) = 87 + -31 on 24/01 .... and so on in this it needs to calculate backwards. can anyone help me please&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note: these dates are connected to calendaer date where the relation ties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;25/01/2024&lt;/TD&gt;&lt;TD&gt;-33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24/01/2024&lt;/TD&gt;&lt;TD&gt;-31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23/01/2024&lt;/TD&gt;&lt;TD&gt;-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22/01/2024&lt;/TD&gt;&lt;TD&gt;-7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18/01/2024&lt;/TD&gt;&lt;TD&gt;-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17/01/2024&lt;/TD&gt;&lt;TD&gt;-96&lt;/TD&gt;&lt;/TR&gt;&lt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t;&lt;TD&gt;-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/12/2023&lt;/TD&gt;&lt;TD&gt;-35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/12/2023&lt;/TD&gt;&lt;TD&gt;-56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/12/2023&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-4&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:26:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3730863#M145398</guid>
      <dc:creator>Srinivas904</dc:creator>
      <dc:date>2024-02-28T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need a urgent help on DAX that calculates backwards based on total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3732719#M145468</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="643535" data-lia-user-login="Srinivas904" class="lia-mention lia-mention-user"&gt;Srinivas904&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly.&lt;BR /&gt;Based on the sample and description you provided, Please try the following steps:&lt;BR /&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;1.You can create a Calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DateTable = VALUES('Table'[Date])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;There is no relationship between the two tables.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Use the following code to create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Backward_Calcualtion = 
VAR Total = 120
VAR Sel_Date =
    SELECTEDVALUE ( 'DateTable'[Date] )
VAR Calcualtion =
    Total
        + SUMX ( FILTER ( ALL ( 'Table' ), 'Table'[Date] &amp;gt;= Sel_Date ), 'Table'[Value] )
RETURN
    IF ( ISBLANK ( Sel_Date ), Total, Calcualtion )

&lt;/LI-CODE&gt;
&lt;P&gt;The field of the slicer is from DateTable.&lt;BR /&gt;When you select "1/25/2024" in the slicer, Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;When you select "1/24/2024" in the slicer, Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;BR /&gt;Please correct me if I misunderstood your needs.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Yulia Yan&lt;/P&gt;
&lt;P&gt;&lt;BR /&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>Thu, 29 Feb 2024 07:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3732719#M145468</guid>
      <dc:creator>v-weiyan1-msft</dc:creator>
      <dc:date>2024-02-29T07:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need a urgent help on DAX that calculates backwards based on total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3733027#M145483</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="652678" data-lia-user-login="v-weiyan1-msft" class="lia-mention lia-mention-user"&gt;v-weiyan1-msft&lt;/a&gt;&amp;nbsp;, Thanks for replying to my message quickly. it is almost similar what you provided but I am attaching an excel to give you a better understanding&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the excel there are 3 columns in that column1 dates in the main table which are connected to calender table and column2 is a measure and column 3 is the based on column 2 sum.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1Cag9VHaLOxddbNrnzpFjYppz5T_sBDoE/edit?usp=sharing&amp;amp;ouid=107184863623556308569&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1Cag9VHaLOxddbNrnzpFjYppz5T_sBDoE/edit?usp=sharing&amp;amp;ouid=107184863623556308569&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to use this new measure in a line graph based on dates to show the quantity present in previous dates. The business wants to visualize this information. Can you please help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-urgent-help-on-DAX-that-calculates-backwards-based-on/m-p/3733027#M145483</guid>
      <dc:creator>Srinivas904</dc:creator>
      <dc:date>2024-02-29T09:02:20Z</dc:date>
    </item>
  </channel>
</rss>

