<?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: I need the matrix to display the values ​​of the days equal to or less than the filtered day in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3463922#M132148</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624639" data-lia-user-login="natico" class="lia-mention lia-mention-user"&gt;natico&lt;/a&gt;&amp;nbsp;See if this helps:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2023 13:38:44 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-10-06T13:38:44Z</dc:date>
    <item>
      <title>I need the matrix to display the values ​​of the days equal to or less than the filtered day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3463905#M132147</link>
      <description>&lt;P&gt;I need to make a matrix in power bi similar to this table. If, for example, I filter the day Wednesday, the matrix should only display data for Monday, Tuesday and Wednesday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should look something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I was thinking of making a measure that would see the name of the day selected in the filter and assign the number that corresponds to that day of the week. And then compare that number with the number that would correspond to the day of the line. If it is less than or equal, it would bring in sales. If it is&lt;SPAN&gt;&amp;nbsp;not, it must come blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sales Pairs TY Report =&lt;BR /&gt;VAR NumDiaSeleccionado = MAX(D_DATES[day_week_number])&lt;BR /&gt;VAR SemanaSeleccionada = SELECTEDVALUE('D_DATES'[weekBATA])&lt;BR /&gt;VAR AnioSeleccionado = SELECTEDVALUE('D_DATES'[year])&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;MAX(D_DATES[day_week_number]) &amp;lt;= NumDiaSeleccionado &amp;amp;&amp;amp;&lt;BR /&gt;MAX(D_DATES[weekBATA]) = SemanaSeleccionada &amp;amp;&amp;amp;&lt;BR /&gt;MAX(D_DATES[year]) = AnioSeleccionado,&lt;BR /&gt;[Sales Pairs TY],&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But as you can see, the measure of the filtered day number does not work and takes the number of each row so it always meets the condition of being equal and brings data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 13:38:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3463905#M132147</guid>
      <dc:creator>natico</dc:creator>
      <dc:date>2023-10-06T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: I need the matrix to display the values ​​of the days equal to or less than the filtered day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3463922#M132148</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624639" data-lia-user-login="natico" class="lia-mention lia-mention-user"&gt;natico&lt;/a&gt;&amp;nbsp;See if this helps:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 13:38:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3463922#M132148</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-10-06T13:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: I need the matrix to display the values ​​of the days equal to or less than the filtered day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3464423#M132197</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624639" data-lia-user-login="natico" class="lia-mention lia-mention-user"&gt;natico&lt;/a&gt;&amp;nbsp;Hi! Try with this adjusted measures:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;FIRST:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;SelectedDayNumber = SELECTEDVALUE('D_DATES'[day_week_number])&lt;BR /&gt;&lt;/EM&gt;SECOND:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Sales Pairs TY Report =&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR SelectedDayNumber = [SelectedDayNumber]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR DayOfWeekNumber = SELECTEDVALUE('D_DATES'[day_week_number])&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR SemanaSeleccionada = SELECTEDVALUE('D_DATES'[weekBATA])&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;VAR AnioSeleccionado = SELECTEDVALUE('D_DATES'[year])&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DayOfWeekNumber &amp;lt;= SelectedDayNumber &amp;amp;&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAX(D_DATES[weekBATA]) = SemanaSeleccionada &amp;amp;&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MAX(D_DATES[year]) = AnioSeleccionado,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[Sales Pairs TY],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;BLANK()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;BBF&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 17:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3464423#M132197</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2023-10-06T17:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: I need the matrix to display the values ​​of the days equal to or less than the filtered day</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3467818#M132366</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="624639" data-lia-user-login="natico" class="lia-mention lia-mention-user"&gt;natico&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sample data:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a new slicer table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer = SUMMARIZE(D_DATES,D_DATES[Name],D_DATES[Weekday])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = IF(SELECTEDVALUE(D_DATES[Weekday])&amp;gt;SELECTEDVALUE(Slicer[Weekday]),BLANK(),SUM(D_DATES[Sales]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expected? Please refer to the attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 02:58:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-the-matrix-to-display-the-values-of-the-days-equal-to-or/m-p/3467818#M132366</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-10-10T02:58:17Z</dc:date>
    </item>
  </channel>
</rss>

