<?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 Maximum column height in visual, dynamic depending on drill down/expanding in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4681822#M179318</link>
    <description>&lt;P&gt;I've got a visual that displays [Total Orders] for the last 10 weeks, summarised by a date hierarchy Year/Quarter/Month/Week (doesn't use actual calendar dates but our finaincial calendar). I'm trying to fetch the maximum displayed [Total Orders] to use in an axes calculation, dynamically updating with the displayed hierachy level. I've written the following measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var MaxInScope = SWITCH(
    TRUE()
    , HASONEVALUE(Dates[Week]     ), MAXX(ALLSELECTED(Dates[Week]     ), [Total Orders])
    , HASONEVALUE(Dates[Month]    ), MAXX(ALLSELECTED(Dates[Month]    ), [Total Orders])
    , HASONEVALUE(Dates[Quarter]  ), MAXX(ALLSELECTED(Dates[Quarter]  ), [Total Orders])
    , HASONEVALUE(Dates[Year]     ), MAXX(ALLSELECTED(Dates[Year]     ), [Total Orders])
)

return MaxInScope&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this isn't doing what i want (the blue bars should all be equal to 563)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to extract the maximum value of a measure, dynamically taking into account the hierachry level thats displayed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 11:13:37 GMT</pubDate>
    <dc:creator>EOW</dc:creator>
    <dc:date>2025-05-06T11:13:37Z</dc:date>
    <item>
      <title>Maximum column height in visual, dynamic depending on drill down/expanding</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4681822#M179318</link>
      <description>&lt;P&gt;I've got a visual that displays [Total Orders] for the last 10 weeks, summarised by a date hierarchy Year/Quarter/Month/Week (doesn't use actual calendar dates but our finaincial calendar). I'm trying to fetch the maximum displayed [Total Orders] to use in an axes calculation, dynamically updating with the displayed hierachy level. I've written the following measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var MaxInScope = SWITCH(
    TRUE()
    , HASONEVALUE(Dates[Week]     ), MAXX(ALLSELECTED(Dates[Week]     ), [Total Orders])
    , HASONEVALUE(Dates[Month]    ), MAXX(ALLSELECTED(Dates[Month]    ), [Total Orders])
    , HASONEVALUE(Dates[Quarter]  ), MAXX(ALLSELECTED(Dates[Quarter]  ), [Total Orders])
    , HASONEVALUE(Dates[Year]     ), MAXX(ALLSELECTED(Dates[Year]     ), [Total Orders])
)

return MaxInScope&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but this isn't doing what i want (the blue bars should all be equal to 563)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to extract the maximum value of a measure, dynamically taking into account the hierachry level thats displayed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 11:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4681822#M179318</guid>
      <dc:creator>EOW</dc:creator>
      <dc:date>2025-05-06T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum column height in visual, dynamic depending on drill down/expanding</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4681885#M179319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="934847" data-lia-user-login="EOW" class="lia-mention lia-mention-user"&gt;EOW&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless I'm missing something, a simple measure of: Max([Total Orders]) should suffice. This would then apply dynamically based on whatever level you have selected within your slicers i.e. week, month etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A way I imagine this may not work for you is if you are not using a date dimension table in order to apply this slicer selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, using Calculate(Max(Total Orders]),ALLEXCEPT('Dates')) might be what you are after. This then ignores the slicer selection on the date dimension.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 12:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4681885#M179319</guid>
      <dc:creator>BITomS</dc:creator>
      <dc:date>2025-05-06T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum column height in visual, dynamic depending on drill down/expanding</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682049#M179324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331637" data-lia-user-login="BITomS" class="lia-mention lia-mention-user"&gt;BITomS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;[Total Orders] is a measure that is summing values from a related table, and thus wont work in a MAX() function. The date hierarchy is one of my own making, since my calendar is different to Power BI's inbuilt one.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 13:42:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682049#M179324</guid>
      <dc:creator>EOW</dc:creator>
      <dc:date>2025-05-06T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum column height in visual, dynamic depending on drill down/expanding</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682073#M179325</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="934847" data-lia-user-login="EOW" class="lia-mention lia-mention-user"&gt;EOW&lt;/a&gt;&amp;nbsp;, perhaps this would work instead:&lt;BR /&gt;&lt;BR /&gt;MaxInScope =&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;ISINSCOPE(Dates[Week]), CALCULATE(MAXX(VALUES(Dates[Week]), [Total Orders])),&lt;BR /&gt;ISINSCOPE(Dates[Month]), CALCULATE(MAXX(VALUES(Dates[Month]), [Total Orders])),&lt;BR /&gt;ISINSCOPE(Dates[Quarter]), CALCULATE(MAXX(VALUES(Dates[Quarter]), [Total Orders])),&lt;BR /&gt;ISINSCOPE(Dates[Year]), CALCULATE(MAXX(VALUES(Dates[Year]), [Total Orders]))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 14:02:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682073#M179325</guid>
      <dc:creator>BITomS</dc:creator>
      <dc:date>2025-05-06T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum column height in visual, dynamic depending on drill down/expanding</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682862#M179354</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="331637" data-lia-user-login="BITomS" class="lia-mention lia-mention-user"&gt;BITomS&lt;/a&gt;&amp;nbsp;I tweaked your DAX and managed to get it working on the visual itself&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SWITCH(TRUE()
, ISINSCOPE(Dates[Week]), MAXX(ALLSELECTED(Dates[Year], Dates[Quarter], Dates[Month], Dates[Week]), [Total Orders])
, ISINSCOPE(Dates[Month]), MAXX(ALLSELECTED(Dates[Year], Dates[Quarter], Dates[Month]), [Total Orders])
, ISINSCOPE(Dates[Quarter]), MAXX(ALLSELECTED(Dates[Year], Dates[Quarter]), [Total Orders])
, ISINSCOPE(Dates[Year]), MAXX(ALLSELECTED(Dates[Year]), [Total Orders])
, [Total Orders]
)&lt;/LI-CODE&gt;&lt;P&gt;Unfortunetly, it seems like ISINSCOPE doesn't work in a Visual Title or Axes so I've hit a road block.&lt;BR /&gt;I've submitted it as an Idea on the Idea forum.&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Let-a-visual-title-and-Axes-read-displayed-hierarchy-level-with/idi-p/4682892" target="_blank" rel="noopener"&gt;Let a visual title and Axes read displayed hierarc... - Microsoft Fabric Community&lt;/A&gt;&lt;BR /&gt;Hopefully it gets traction.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 09:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Maximum-column-height-in-visual-dynamic-depending-on-drill-down/m-p/4682862#M179354</guid>
      <dc:creator>EOW</dc:creator>
      <dc:date>2025-05-07T09:26:21Z</dc:date>
    </item>
  </channel>
</rss>

