<?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: Calculate with filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948732#M42434</link>
    <description>&lt;P&gt;I'm doind that but its showing always the latest period and so, if the company there isn't in that period (eg Company B period 3) it shoed score "blank.&lt;/P&gt;&lt;P&gt;I'd like to label the latest period x company and not the latest per colum like it is.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 17:08:58 GMT</pubDate>
    <dc:creator>Mgg</dc:creator>
    <dc:date>2021-07-09T17:08:58Z</dc:date>
    <item>
      <title>Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1946828#M42387</link>
      <description>&lt;LI-SPOILER&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm in a trouble with a filter.&lt;/P&gt;&lt;P&gt;I need to show a score filtering the data using a measure (not fixed data)&lt;/P&gt;&lt;P&gt;I'm using the following but it doesn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE([SpeScore], FILTER(SPE, SPE[Period]=[SpeLastPeriod]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;P&gt;Thans in advance&lt;/P&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 08 Jul 2021 22:24:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1946828#M42387</guid>
      <dc:creator>Mgg</dc:creator>
      <dc:date>2021-07-08T22:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1946855#M42388</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;If I got you right, you trying to calculate SpeScore for latest value.&lt;BR /&gt;Unfortunatelly this does not work but there is an easy.&lt;BR /&gt;&lt;BR /&gt;1. In your SPE table, create a calculated column with MAXX and IF, where you specify the latest (period, date, year...)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2. Use your DAX measure, only adjust the condition bit, something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you can see, I get the value for Period 5, which is the latest.&lt;BR /&gt;&lt;BR /&gt;Please let me know, how did it help!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 23:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1946855#M42388</guid>
      <dc:creator>Migasuke</dc:creator>
      <dc:date>2021-07-08T23:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947708#M42398</link>
      <description>&lt;P&gt;GREAT ...problem solved !!!&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947708#M42398</guid>
      <dc:creator>Mgg</dc:creator>
      <dc:date>2021-07-09T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947714#M42399</link>
      <description>&lt;P&gt;GREAT...problem solved&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;Now the filter is working well&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947714#M42399</guid>
      <dc:creator>Mgg</dc:creator>
      <dc:date>2021-07-09T08:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947851#M42401</link>
      <description>&lt;P&gt;Thanks for your solution but I have an additional complexity: How I can define the "Latest" period taking in consideration also the "Company"?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the example the latest period for the companies B and D is 2 and NOT 3 like for companies A and C&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 09:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1947851#M42401</guid>
      <dc:creator>Mgg</dc:creator>
      <dc:date>2021-07-09T09:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948715#M42433</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236359" data-lia-user-login="Mgg" class="lia-mention lia-mention-user"&gt;Mgg&lt;/a&gt; ,&lt;BR /&gt;That depends how you trying to visualize the measure or what should be the output.&lt;BR /&gt;For example, you can use your measure with Company Slicer and everything will work well.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:02:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948715#M42433</guid>
      <dc:creator>Migasuke</dc:creator>
      <dc:date>2021-07-09T17:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948732#M42434</link>
      <description>&lt;P&gt;I'm doind that but its showing always the latest period and so, if the company there isn't in that period (eg Company B period 3) it shoed score "blank.&lt;/P&gt;&lt;P&gt;I'd like to label the latest period x company and not the latest per colum like it is.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:08:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948732#M42434</guid>
      <dc:creator>Mgg</dc:creator>
      <dc:date>2021-07-09T17:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948745#M42436</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;It should work fine, if you use column, which has "Latest" by Company, check this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure then will be a bit adjusted:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Value = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM(SPE[Value]),SPE[Latest In Group]="Latest")&lt;BR /&gt;&lt;BR /&gt;Once you use slicer, it will behave the way you want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:13:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-with-filter/m-p/1948745#M42436</guid>
      <dc:creator>Migasuke</dc:creator>
      <dc:date>2021-07-09T17:13:38Z</dc:date>
    </item>
  </channel>
</rss>

