<?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 DAX Measure, Slicer Selected Last Date on Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3111708#M109957</link>
    <description>&lt;P class=""&gt;Hello everyone. I've been banging my head against the wall trying many iterations of this. I've provided an example of the data below. Basically I'm trying to plot how many people finish a group of courses (the last day they finish a course in the selected group) vs. the date on a plot. The Class slicer can change to a users selection and is a separate table.&lt;/P&gt;&lt;P class=""&gt;I thought I would do something like this but am running into issues getting the proper value and plotting it on a visual. The user can select any combination of courses in the slicer. In the below example they have selected A, B, and C - which only four people have completed. Their final completoin date would then be plotted against how many users finished on that date.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;calculate(distinctcount(Table[Name],filter(Table, Courses Completed = Courses Selected &amp;amp;&amp;amp; Table[Completed] = max(Table[Completed])&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Without bringing in the date to a visual I can count the correct number of users that have completed all of the courses.&lt;/P&gt;&lt;P class=""&gt;CoursesSelected = calculate(countrows(CourseListTable))&lt;/P&gt;&lt;P class=""&gt;Current Courses Completed = calculate(distinctcount(Table[Class]))&lt;/P&gt;&lt;P class=""&gt;Current People Completed = calculate(countrows(filter(values(Table[Name]),Current Courses Completed = Courses Selected)))&lt;/P&gt;&lt;P class=""&gt;I appreciate any advice or links to tutorials!&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 16:38:36 GMT</pubDate>
    <dc:creator>TexasStone</dc:creator>
    <dc:date>2023-03-04T16:38:36Z</dc:date>
    <item>
      <title>DAX Measure, Slicer Selected Last Date on Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3111708#M109957</link>
      <description>&lt;P class=""&gt;Hello everyone. I've been banging my head against the wall trying many iterations of this. I've provided an example of the data below. Basically I'm trying to plot how many people finish a group of courses (the last day they finish a course in the selected group) vs. the date on a plot. The Class slicer can change to a users selection and is a separate table.&lt;/P&gt;&lt;P class=""&gt;I thought I would do something like this but am running into issues getting the proper value and plotting it on a visual. The user can select any combination of courses in the slicer. In the below example they have selected A, B, and C - which only four people have completed. Their final completoin date would then be plotted against how many users finished on that date.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;calculate(distinctcount(Table[Name],filter(Table, Courses Completed = Courses Selected &amp;amp;&amp;amp; Table[Completed] = max(Table[Completed])&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Without bringing in the date to a visual I can count the correct number of users that have completed all of the courses.&lt;/P&gt;&lt;P class=""&gt;CoursesSelected = calculate(countrows(CourseListTable))&lt;/P&gt;&lt;P class=""&gt;Current Courses Completed = calculate(distinctcount(Table[Class]))&lt;/P&gt;&lt;P class=""&gt;Current People Completed = calculate(countrows(filter(values(Table[Name]),Current Courses Completed = Courses Selected)))&lt;/P&gt;&lt;P class=""&gt;I appreciate any advice or links to tutorials!&lt;/P&gt;&lt;P class=""&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 16:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3111708#M109957</guid>
      <dc:creator>TexasStone</dc:creator>
      <dc:date>2023-03-04T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure, Slicer Selected Last Date on Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3111724#M109959</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="524287" data-lia-user-login="TexasStone" class="lia-mention lia-mention-user"&gt;TexasStone&lt;/a&gt;&amp;nbsp;I did it like the following. PBIX is attached below signature.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Date = MAX('Dates'[Date])
    VAR __NumCourses = COUNTROWS('CourseListTable')
    VAR __Table = SUMMARIZE('Table',[Name],"__Count",COUNTROWS('Table'),"__Latest",MAX('Table'[Completed]))
    VAR __Return = COUNTROWS(FILTER(__Table,[__Count]=__NumCourses &amp;amp;&amp;amp; [__Latest] = __Date))
RETURN
    __Return&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 04 Mar 2023 17:10:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3111724#M109959</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-03-04T17:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure, Slicer Selected Last Date on Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3112075#M109986</link>
      <description>&lt;P&gt;This is awesome, thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 06:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Slicer-Selected-Last-Date-on-Graph/m-p/3112075#M109986</guid>
      <dc:creator>TexasStone</dc:creator>
      <dc:date>2023-03-05T06:10:48Z</dc:date>
    </item>
  </channel>
</rss>

