<?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: Show total only last month in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/90445#M3212</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tks everybody for answers...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved:&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;LastMonth = IF(YEAR(TODAY())= YEAR('Fact'[Date]) &amp;amp;&amp;amp; MONTH(TODAY())-1 = MONTH('Fact'[Date]);1;BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure&lt;/P&gt;&lt;P&gt;Mymeasure&amp;nbsp;= CALCULATE(SUM('Fact'[Value]);'Fact'[LatMonth] =1)&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 16:32:30 GMT</pubDate>
    <dc:creator>Twister8</dc:creator>
    <dc:date>2016-11-16T16:32:30Z</dc:date>
    <item>
      <title>Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88514#M3141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need show in my gauge the value just of the LASTMONTH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;= CALCULATE([VALUE];DATEADD(Tempo[Date]; -1; MONTH))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My result its total, its sum all values in rows, but I need just the last month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example:&lt;/P&gt;&lt;P&gt;month &amp;nbsp; &amp;nbsp; &amp;nbsp;values&lt;/P&gt;&lt;P&gt;2016-1 &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2016-2 &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;2016-10 &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;2016-10 &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need return the 20 in my result&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 20:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88514#M3141</guid>
      <dc:creator>Twister8</dc:creator>
      <dc:date>2016-11-10T20:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88523#M3142</link>
      <description>&lt;P&gt;You can check it out at&amp;nbsp;&lt;A href="http://www.kasperonbi.com/use-powerpivot-dax-to-automatically-report-on-the-last-month-that-has-data/" target="_blank"&gt;HERE&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 20:41:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88523#M3142</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-11-10T20:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88595#M3145</link>
      <description>&lt;P&gt;Tks for answer :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have a error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A3 = IF(MONTH(LASTDATE(ALL('Fct'[DATA]))) = Time[Date]&lt;BR /&gt;&amp;amp;&amp;amp; YEAR(LASTDATE(ALL('Fct'[DATA]))) = Time[Date];"Y";"N")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could not determine a single value for the 'Date' column in the 'Time' table. This can happen when a measure formula refers to a column containing many values, without specifying an aggregation, such as min, max, Cont or sound for a single result.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/88595#M3145</guid>
      <dc:creator>Twister8</dc:creator>
      <dc:date>2016-11-11T00:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/89289#M3171</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="11442" data-lia-user-login="Twister8" class="lia-mention lia-mention-user"&gt;Twister8﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to use below formula if it works on your side:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total of last month&amp;nbsp;=&lt;BR /&gt;var currDate=MAX(Tempo[Date])&lt;BR /&gt;return&lt;BR /&gt;SUMX(FILTER(ALL(Tempo),currDate&amp;gt;= DATE(YEAR(currDate),MONTH(currDate)-1,1)&amp;amp;&amp;amp;currDate&amp;lt;=DATE(YEAR(currDate),MONTH(currDate),1)-1),[VALUE])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 07:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/89289#M3171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T07:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/90445#M3212</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tks everybody for answers...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved:&lt;/P&gt;&lt;P&gt;Column&lt;/P&gt;&lt;P&gt;LastMonth = IF(YEAR(TODAY())= YEAR('Fact'[Date]) &amp;amp;&amp;amp; MONTH(TODAY())-1 = MONTH('Fact'[Date]);1;BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure&lt;/P&gt;&lt;P&gt;Mymeasure&amp;nbsp;= CALCULATE(SUM('Fact'[Value]);'Fact'[LatMonth] =1)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 16:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/90445#M3212</guid>
      <dc:creator>Twister8</dc:creator>
      <dc:date>2016-11-16T16:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/109019#M3803</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your formula might have failed by now as the current year is not anymore the same as&amp;nbsp;&lt;SPAN&gt;YEAR('Fact'[Date]) but still is last month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I created a measure as the key for identifying&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LastMonth = if(MONTH(TODAY())-1=0,12,MONTH(TODAY()-1)) &amp;amp;" "&amp;amp; (YEAR(TODAY())-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also a column for identifying those.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IsInLastMonth = IF(DateTable[MonthAndYear]=[LastMonth],TRUE(),FALSE())&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/109019#M3803</guid>
      <dc:creator>alanhanssen</dc:creator>
      <dc:date>2017-01-05T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show total only last month</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/227685#M7181</link>
      <description>&lt;P&gt;I just create a calculated column on the date field in the table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IsPreviousMonthIns = IF(Month([Inspection_Date])=Month(Today())-1,"YES","NO")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then set a visual level filter on this column to filter out the "No" results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also create a column to check current year:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IsCurrentYearIns = IF(Year([Inspection_Date])=Year(Today()),"YES","NO")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two columns allow me to pull only last months results for the current year......Works nicely....&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:40:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Show-total-only-last-month/m-p/227685#M7181</guid>
      <dc:creator>sprather</dc:creator>
      <dc:date>2017-08-08T15:40:46Z</dc:date>
    </item>
  </channel>
</rss>

