<?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: Measure to show value from last year if blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-value-from-last-year-if-blank/m-p/3407086#M128743</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609485" data-lia-user-login="luismolle" class="lia-mention lia-mention-user"&gt;luismolle&lt;/a&gt;&amp;nbsp;assuming you are using a date dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a best practice, add a date dimension in your model and use it for time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools. Check the related videos on my YT channel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=BKzsCfr4qeQ" target="_blank"&gt;Add Date Dimension&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://https://www.youtube.com/watch?v=0eSluyDMTwk" target="_blank"&gt;Importance of Date Dimension&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/playlist?list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi" target="_blank"&gt;Time Intelligence Playlist&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try following measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Measure = 
COALESCE( 
   [Existing Measure], 
   CALCULATE ( [Existing Measure], SAMEPERIODLASTYEAR ( 'Date Table'[Date] ) )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 30 Aug 2023 16:14:59 GMT</pubDate>
    <dc:creator>parry2k</dc:creator>
    <dc:date>2023-08-30T16:14:59Z</dc:date>
    <item>
      <title>Measure to show value from last year if blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-value-from-last-year-if-blank/m-p/3406610#M128717</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DAX measure doing some calcs in a table. What im trying to do is, for the values that I still dont have the calcs (blanks), it should show the value from last year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example with Image: for July 2023, it should show the value from July 2022 (1,416,733,167.125), August 23 should show the value from August 22 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Luis.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 12:57:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-value-from-last-year-if-blank/m-p/3406610#M128717</guid>
      <dc:creator>luismolle</dc:creator>
      <dc:date>2023-08-30T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to show value from last year if blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-value-from-last-year-if-blank/m-p/3407086#M128743</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="609485" data-lia-user-login="luismolle" class="lia-mention lia-mention-user"&gt;luismolle&lt;/a&gt;&amp;nbsp;assuming you are using a date dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a best practice, add a date dimension in your model and use it for time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools. Check the related videos on my YT channel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=BKzsCfr4qeQ" target="_blank"&gt;Add Date Dimension&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://https://www.youtube.com/watch?v=0eSluyDMTwk" target="_blank"&gt;Importance of Date Dimension&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/playlist?list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi" target="_blank"&gt;Time Intelligence Playlist&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try following measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Measure = 
COALESCE( 
   [Existing Measure], 
   CALCULATE ( [Existing Measure], SAMEPERIODLASTYEAR ( 'Date Table'[Date] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Aug 2023 16:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-value-from-last-year-if-blank/m-p/3407086#M128743</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2023-08-30T16:14:59Z</dc:date>
    </item>
  </channel>
</rss>

