<?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: Same Y axis based on DAX MAX formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3262062#M120685</link>
    <description>&lt;P&gt;Awesome, exactly what I needed! Thanks a lot!!&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 13:57:47 GMT</pubDate>
    <dc:creator>mnemecek23</dc:creator>
    <dc:date>2023-05-31T13:57:47Z</dc:date>
    <item>
      <title>Same Y axis based on DAX MAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3261897#M120674</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a report which has multiple graphs showing accepted volume at the individual locations in our network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each graph is filtered down for a specific location and looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In order to show the correct proportion, I need the y-axis to be the same for all locations. Together with a colleague, we thought of using the MAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;MAX = CALCULATE(MAX(VW_BI_KPI[ACCEPTED]),REMOVEFILTERS(VW_BI_KPI[LOCATION]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which works fine, b&lt;/SPAN&gt;&lt;SPAN&gt;ut... &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Each location handles a multitude of different service keys. The above formula works out only if the data is filtered for one service key, but fails when it's two or more (it then gives the maximum accepted value for a single service key). I need two steps:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;1) SUM of the volume per location across all service keys&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2) the maximum of the above figure&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The underlying data looks like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any suggestions how to achieve this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Many thanks!&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 12:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3261897#M120674</guid>
      <dc:creator>mnemecek23</dc:creator>
      <dc:date>2023-05-31T12:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Same Y axis based on DAX MAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3262020#M120681</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max Y Axis =
VAR SummaryTable =
    ADDCOLUMNS (
        SUMMARIZE ( ALL ( VW_BI_KPI ), VW_BI_KPI[Location], 'Date'[Date] ),
        "@value", CALCULATE ( SUM ( VW_BI_KPI[Accepted] ) )
    )
VAR Result =
    MAXX ( SummaryTable, [@value] )
RETURN
    Result
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 May 2023 13:38:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3262020#M120681</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-31T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Same Y axis based on DAX MAX formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3262062#M120685</link>
      <description>&lt;P&gt;Awesome, exactly what I needed! Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 13:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Same-Y-axis-based-on-DAX-MAX-formula/m-p/3262062#M120685</guid>
      <dc:creator>mnemecek23</dc:creator>
      <dc:date>2023-05-31T13:57:47Z</dc:date>
    </item>
  </channel>
</rss>

