<?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: Adjusting Week Grouping Logic in Power BI Matrix Table in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251496#M11631</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 22:20:00 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-10-21T22:20:00Z</dc:date>
    <item>
      <title>Adjusting Week Grouping Logic in Power BI Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251224#M11629</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi! im new here, can someone pls help me with this? thank you! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i have a matrix table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rows: nr tagging[new region], customer[customer name] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;columns: productivity[weekperiod] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;values: productivity[actual]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;currently this is the output of my columns in the table: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wk - 1 Mon-Wed | Wk - 1 Thu-Sat | Wk -2 Mon-Wed | Wk -2 Thu-Sat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;First column is always "Wk1 Mon-Wed", even if the first group of the first week of the month falls under the group of "Wk-1 Thu-Sat". How can I correct this? if week 1 starts on a tuesday or wednesday or thursday, then the first column should be Wk-1 Thu-Sat, if week 1 starts on a sat or sun or mon, then the first column should be Wk-1 Mon-Wed. The&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;group should be complete (mon-wed) and (thu-sat). let’s say in the month of Sep 2024, week 5 is only until Monday, then there shouldn’t be Wk-5 Mon-Wed since Tues and Wed falls on the next month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In June 2024, day 1 started on a Saturday, so the first column should be "Wk-1 Mon-Wed".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WeekPeriod = VAR WeekNum = “Wk - “ &amp;amp; Productivity[Week_5] VAR DayGroup = Productivity[Weekday Group] RETURN IF(ISBLANK(DayGroup), BLANK(), WeekNum &amp;amp; “ “ &amp;amp; DayGroup) Week_5 = VAR Num = INT ((Productivity[FORM ANSWER DATE] • [Day]-1)/7)+1 RETURN IF ( Num &amp;gt; 5, 5, Num ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Weekday Group = SWITCH ( TRUE () , Productivity [Weekday] &amp;gt;= 1 &amp;amp;&amp;amp; Productivity[Weekday] &amp;lt;= 3, "Mon-Wed" , Productivity [Weekday] &amp;gt;= 4 &amp;amp;&amp;amp; Productivity[Weekday], &amp;lt;= 6, "Thu-Sat", BLANK())&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 18:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251224#M11629</guid>
      <dc:creator>Gemni</dc:creator>
      <dc:date>2024-10-21T18:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting Week Grouping Logic in Power BI Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251496#M11631</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 22:20:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251496#M11631</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-21T22:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting Week Grouping Logic in Power BI Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251535#M11632</link>
      <description>&lt;P&gt;Thank you for the response!&lt;/P&gt;&lt;P&gt;To clarify my issue, here's some sample data that reflects the problem I'm encountering with my matrix table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rows: NAME&lt;/P&gt;&lt;P&gt;Columns: WeekPeriod&lt;/P&gt;&lt;P&gt;Values: Actual&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtered by the month of October&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;NAME&lt;/TD&gt;&lt;TD&gt;Week 1 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 1 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 2 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 2 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 3 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 3 Thu-Sat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brix&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoey&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- October 2024 starts on a Tuesday, so the first column should be "Week 1 Thu-Sat" because the first three days of the week (Mon-Wed) don't form a complete group.&lt;/P&gt;&lt;P&gt;- Only display complete groups of Mon-Wed and Thu-Sat. For example, if a week only has a part of Mon-Wed or Thu-Sat that spills into the next month, it shouldn't be displayed in the header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's more sample filtered by the month of April:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;NAME&lt;/TD&gt;&lt;TD&gt;Week 1 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 1 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 2 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 2 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 3 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 3 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 4 Mon-Wed&lt;/TD&gt;&lt;TD&gt;Week 4 Thu-Sat&lt;/TD&gt;&lt;TD&gt;Week 5 Mon-Wed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Brix&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Zoey&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- this April table should only have 8 columns since the last group of Mon-Wed isn't complete April 29-30 as Monday and Tuesday, because Wed falls on the next month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if this helps or if you need further clarification. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 23:51:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251535#M11632</guid>
      <dc:creator>Gemni</dc:creator>
      <dc:date>2024-10-21T23:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adjusting Week Grouping Logic in Power BI Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251542#M11633</link>
      <description>&lt;P&gt;All of this is immutable.&amp;nbsp; There is no need to calculate this with Power Query or DAX.&amp;nbsp; Use an externally sourced calendar table that for each day indicated which week sub group it belongs to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_2-1729557083163.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186709iAAAF488FA55EBB04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_2-1729557083163.png" alt="lbendlin_2-1729557083163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_3-1729557136713.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186710i02157283C6B3E7F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_3-1729557136713.png" alt="lbendlin_3-1729557136713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 00:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Adjusting-Week-Grouping-Logic-in-Power-BI-Matrix-Table/m-p/4251542#M11633</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-10-22T00:32:24Z</dc:date>
    </item>
  </channel>
</rss>

