<?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 Values of latest date when two dates selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89089#M136</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;My table is like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;January&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;February&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i select only february or January the value is 30 or 20&lt;/P&gt;&lt;P&gt;but when i select two or more month i want the result not to be 50&lt;/P&gt;&lt;P&gt;i want the result to be 30 (the latest value off the dates selected&lt;/P&gt;&lt;P&gt;is it possible?&lt;/P&gt;</description>
    <pubDate>Sat, 12 Nov 2016 20:25:36 GMT</pubDate>
    <dc:creator>giorgiokatr</dc:creator>
    <dc:date>2016-11-12T20:25:36Z</dc:date>
    <item>
      <title>Values of latest date when two dates selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89089#M136</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;My table is like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;January&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;February&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i select only february or January the value is 30 or 20&lt;/P&gt;&lt;P&gt;but when i select two or more month i want the result not to be 50&lt;/P&gt;&lt;P&gt;i want the result to be 30 (the latest value off the dates selected&lt;/P&gt;&lt;P&gt;is it possible?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 20:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89089#M136</guid>
      <dc:creator>giorgiokatr</dc:creator>
      <dc:date>2016-11-12T20:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Values of latest date when two dates selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89098#M137</link>
      <description>&lt;P&gt;Yes, You can do that by explicily specifying the filter in the calcualte function. for this case,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feb Only:=CALCULATE(SUM(Table(Value)), Table[Date]= "February")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are many other ways you an write this expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Providing Sample data will help us to give you a specific suggestion.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 02:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89098#M137</guid>
      <dc:creator>BhaveshPatel</dc:creator>
      <dc:date>2016-11-13T02:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Values of latest date when two dates selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89126#M138</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;I am attaching a sample pbix&lt;/P&gt;&lt;P&gt;In this example i have two tables (Dates and Amount)&lt;/P&gt;&lt;P&gt;Slicer has the dates and a Card has the Amounts&lt;/P&gt;&lt;P&gt;If i select january it show 20 but if i select february and march i dont want to show 70 but 40 (the sales of the last month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also i have another question&lt;/P&gt;&lt;P&gt;Table Amount has branches with areas&lt;/P&gt;&lt;P&gt;Each branch has Sales and Good Sales Column&lt;/P&gt;&lt;P&gt;So i created a new column which is Good Sales/ Sales&amp;nbsp; (% of good sales)&lt;/P&gt;&lt;P&gt;When i group by area (sheet good sales) is there any way to show the % of good sales for area&lt;/P&gt;&lt;P&gt;Right now Bi calculates the sum. I want to show the weighted average&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0Bw-_YmJ3Q49gMjJqbnRTeGIxRkU/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/0Bw-_YmJ3Q49gMjJqbnRTeGIxRkU/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 12:28:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/89126#M138</guid>
      <dc:creator>giorgiokatr</dc:creator>
      <dc:date>2016-11-13T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Values of latest date when two dates selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/95348#M154</link>
      <description>&lt;P&gt;For the original question, you just right click in Sales field of Card and choose Maximum. That's all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for the additional question, you could try below expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Calculated Measure - Good Sales (%) = Divide(calculate(sum(Amount[Good Sales])),calculate(sum(Amount[Sales])))&lt;/PRE&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:31:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Values-of-latest-date-when-two-dates-selected/m-p/95348#M154</guid>
      <dc:creator>tringuyenminh92</dc:creator>
      <dc:date>2016-11-29T16:31:15Z</dc:date>
    </item>
  </channel>
</rss>

