<?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: Return Week number of Max Events in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256239#M120265</link>
    <description>&lt;P&gt;Hi, Thanks, nearly right&lt;/P&gt;&lt;P&gt;It is returning the hours for the max week, but it is returning the last (Max) value for Week No. and not the weeks this values occur on i,e, the first course has 30 weeks of data, so it is returning 30 and not weeks 11, 12, 14 14 &amp;amp; 15&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2023 10:47:48 GMT</pubDate>
    <dc:creator>Garbo62</dc:creator>
    <dc:date>2023-05-27T10:47:48Z</dc:date>
    <item>
      <title>Return Week number of Max Events</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3255376#M120212</link>
      <description>&lt;P&gt;Hi, need help with a DAX Query I want to retune which week(s) the max hours occurs not all weeks for each course?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Weekly Course Hours Max = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Weekly Course Hours'&lt;/SPAN&gt;&lt;SPAN&gt;[Course (Weekly)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Weekly Course Hours'&lt;/SPAN&gt;&lt;SPAN&gt;[Week No]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Max Week"&lt;/SPAN&gt;&lt;SPAN&gt; , &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Weekly Course Hours'&lt;/SPAN&gt;&lt;SPAN&gt;[Hours Per Week]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 May 2023 12:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3255376#M120212</guid>
      <dc:creator>Garbo62</dc:creator>
      <dc:date>2023-05-26T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Return Week number of Max Events</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256098#M120253</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472945" data-lia-user-login="Garbo62" class="lia-mention lia-mention-user"&gt;Garbo62&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get you, supposing you have a data table like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;try to create a calculated table like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS(
    ADDCOLUMNS(
        VALUES(data[course]),
        "WeekMax",
        CALCULATE(MAX(data[WeekMax]))
    ),
    "WeekNo",
    CALCULATE(MAX(data[WeekNo]))
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 02:08:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256098#M120253</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-27T02:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Return Week number of Max Events</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256109#M120254</link>
      <description>&lt;P&gt;or you plot the course column with two measures like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_WeekMax = MAX(data[WeekMax])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_WeekNo = 
MAXX(
    TOPN(
        1,
        data,
        data[WeekMax]
    ),
    data[WeekNo]
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 02:13:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256109#M120254</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-27T02:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Return Week number of Max Events</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256239#M120265</link>
      <description>&lt;P&gt;Hi, Thanks, nearly right&lt;/P&gt;&lt;P&gt;It is returning the hours for the max week, but it is returning the last (Max) value for Week No. and not the weeks this values occur on i,e, the first course has 30 weeks of data, so it is returning 30 and not weeks 11, 12, 14 14 &amp;amp; 15&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 10:47:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3256239#M120265</guid>
      <dc:creator>Garbo62</dc:creator>
      <dc:date>2023-05-27T10:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Return Week number of Max Events</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3257847#M120367</link>
      <description>&lt;P&gt;Thanks, it is common thet the max week occurs more then once, is there a war to expemf to reuurm them all&lt;/P&gt;&lt;P&gt;i.e. Course A may have a max hours in week 3,7 and week 10.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:04:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Week-number-of-Max-Events/m-p/3257847#M120367</guid>
      <dc:creator>Garbo62</dc:creator>
      <dc:date>2023-05-29T11:04:55Z</dc:date>
    </item>
  </channel>
</rss>

