<?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 Visualize table with date before a maximum date from a slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3876655#M151374</link>
    <description>&lt;P&gt;Hi everyone, I need to create a measure (or other method) to see rows details in my "details page" from my "overview page" not considering start date from slicer date on the "details page".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA MODEL&lt;BR /&gt;&lt;/STRONG&gt;Table Ticket_PBI: ticket_id (type: string), input (integer), output (integer), input_date (date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table Calendar_PBI: calendar_date (date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;...are all values from 01/01/2024 to 31/03/2024&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Table relationship in the data model: Calendar_PBI (dim table)&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;*&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;-&amp;gt; 1&lt;/STRONG&gt; Ticket_PBI (fact table)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT PAGE 1&lt;BR /&gt;&lt;/STRONG&gt;I have created a page named 'TICKETS OVERVIEW'.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have added the calendar_date (a slicer with a style between) with default values set from start date 01/02/2024 to end date 10/02/2024.&lt;/LI&gt;&lt;LI&gt;I have also added a card that shows the sum of inputs without considering the start date of the slicer from point 1. The card contains a DAX measure "stock current" defined as follows: CALCULATE(SUM(Ticket_PBI[input]), FILTER(Ticket_PBI, Ticket_PBI[input_date] &amp;lt;= MAX(Calendar_PBI[calendar_date])), FILTER(Ticket_PBI, ISBLANK(Ticket_PBI[output])))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So, the result of my card will be = 3, as there are only 3 input_dates that are &amp;lt;= the MAX(Calendar_PBI[calendar_date]), which is 10/02/2024.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT PAGE 2&lt;/STRONG&gt;&lt;BR /&gt;I also created a page named 'TICKETS DETAILS'.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have added the calendar_date (a slicer in style &lt;EM&gt;between&lt;/EM&gt;) with default values set from start date 01/02/2024 to end date 10/02/2024. This slicer is synchronized with the slicer from point 1 of the 'TICKETS OVERVIEW' page.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is to display all the ticket_id that meet the "stock current" measure created in point 2. That is, all those ticket_id where their input_date is &amp;lt;= the MAX(Calendar_PBI[calendar_date]) of the slicer.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;an example of DESIRED OUTPUT,&amp;nbsp;&lt;/STRONG&gt;a table visual with these columns and rows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 18:45:10 GMT</pubDate>
    <dc:creator>simon_pbi_data</dc:creator>
    <dc:date>2024-04-29T18:45:10Z</dc:date>
    <item>
      <title>Visualize table with date before a maximum date from a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3876655#M151374</link>
      <description>&lt;P&gt;Hi everyone, I need to create a measure (or other method) to see rows details in my "details page" from my "overview page" not considering start date from slicer date on the "details page".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA MODEL&lt;BR /&gt;&lt;/STRONG&gt;Table Ticket_PBI: ticket_id (type: string), input (integer), output (integer), input_date (date)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table Calendar_PBI: calendar_date (date)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;...are all values from 01/01/2024 to 31/03/2024&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Table relationship in the data model: Calendar_PBI (dim table)&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;*&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;-&amp;gt; 1&lt;/STRONG&gt; Ticket_PBI (fact table)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT PAGE 1&lt;BR /&gt;&lt;/STRONG&gt;I have created a page named 'TICKETS OVERVIEW'.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have added the calendar_date (a slicer with a style between) with default values set from start date 01/02/2024 to end date 10/02/2024.&lt;/LI&gt;&lt;LI&gt;I have also added a card that shows the sum of inputs without considering the start date of the slicer from point 1. The card contains a DAX measure "stock current" defined as follows: CALCULATE(SUM(Ticket_PBI[input]), FILTER(Ticket_PBI, Ticket_PBI[input_date] &amp;lt;= MAX(Calendar_PBI[calendar_date])), FILTER(Ticket_PBI, ISBLANK(Ticket_PBI[output])))&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So, the result of my card will be = 3, as there are only 3 input_dates that are &amp;lt;= the MAX(Calendar_PBI[calendar_date]), which is 10/02/2024.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REPORT PAGE 2&lt;/STRONG&gt;&lt;BR /&gt;I also created a page named 'TICKETS DETAILS'.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have added the calendar_date (a slicer in style &lt;EM&gt;between&lt;/EM&gt;) with default values set from start date 01/02/2024 to end date 10/02/2024. This slicer is synchronized with the slicer from point 1 of the 'TICKETS OVERVIEW' page.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My goal is to display all the ticket_id that meet the "stock current" measure created in point 2. That is, all those ticket_id where their input_date is &amp;lt;= the MAX(Calendar_PBI[calendar_date]) of the slicer.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;an example of DESIRED OUTPUT,&amp;nbsp;&lt;/STRONG&gt;a table visual with these columns and rows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 18:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3876655#M151374</guid>
      <dc:creator>simon_pbi_data</dc:creator>
      <dc:date>2024-04-29T18:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize table with date before a maximum date from a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3877428#M151393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="733716" data-lia-user-login="simon_pbi_data" class="lia-mention lia-mention-user"&gt;simon_pbi_data&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;BR /&gt;1. Use the following DAX expression to create a table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = SELECTCOLUMNS('Ticket_PBI',"ticiket_id",'Ticket_PBI'[ticket_id],"input_date",'Ticket_PBI'[input_date])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2.Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_input_date = CALCULATE(SELECTEDVALUE('Table'[input_date]) ,'Table'[input_date] &amp;lt;= MAX('Calendar_PBI'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;3.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 02:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3877428#M151393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-30T02:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize table with date before a maximum date from a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3880379#M151474</link>
      <description>&lt;P&gt;Thanks a lot, now its work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 18:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visualize-table-with-date-before-a-maximum-date-from-a-slicer/m-p/3880379#M151474</guid>
      <dc:creator>simon_pbi_data</dc:creator>
      <dc:date>2024-04-30T18:12:35Z</dc:date>
    </item>
  </channel>
</rss>

