<?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: Calculating previous days values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-previous-days-values/m-p/3824117#M149550</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="666202" data-lia-user-login="LFM" class="lia-mention lia-mention-user"&gt;LFM&lt;/a&gt;&amp;nbsp;You are using CALCULATE and TI functions is what is primarily wrong. Do this instead:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Date = MAX('NPOSC'[date]) - 1
  VAR __Table = FILTER( ALL('NPOSC'), [date] = __Date )
  VAR __Result = SUMX( __Table, [exposure_mwh] )
RETURN
  __Result&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 09 Apr 2024 15:02:02 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-04-09T15:02:02Z</dc:date>
    <item>
      <title>Calculating previous days values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-previous-days-values/m-p/3824102#M149546</link>
      <description>&lt;P&gt;Im trying to calculate previous days exposure for the measure called "prevous days exposure_mwh". It should be the sum of exposure for the last day. I dont get any values as seen in the pictures. What is wrong wilth the calculation?&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 14:53:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-previous-days-values/m-p/3824102#M149546</guid>
      <dc:creator>LFM</dc:creator>
      <dc:date>2024-04-09T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating previous days values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-previous-days-values/m-p/3824117#M149550</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="666202" data-lia-user-login="LFM" class="lia-mention lia-mention-user"&gt;LFM&lt;/a&gt;&amp;nbsp;You are using CALCULATE and TI functions is what is primarily wrong. Do this instead:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Date = MAX('NPOSC'[date]) - 1
  VAR __Table = FILTER( ALL('NPOSC'), [date] = __Date )
  VAR __Result = SUMX( __Table, [exposure_mwh] )
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-previous-days-values/m-p/3824117#M149550</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-04-09T15:02:02Z</dc:date>
    </item>
  </channel>
</rss>

