<?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: Help declaring max value measure for a guage? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158305#M49883</link>
    <description>&lt;P&gt;Thanks, this sets the maximums perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I combine that with the countrows to compare the table data to the maximum value. As right now, the gauge is just displaying the maximum values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used BI for 2 hours only so sorry for the newbie questions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 12:40:51 GMT</pubDate>
    <dc:creator>shaun-bi</dc:creator>
    <dc:date>2021-10-27T12:40:51Z</dc:date>
    <item>
      <title>Help declaring max value measure for a guage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158164#M49878</link>
      <description>&lt;P&gt;I have a single dataset that has table called "reservations", which is presented in a BI report as a simple table. In this table it has a column called "buildings". Each building has a maximum capacity number (not contained in the table) which is hard set and can be included in the measure (if that makes sense to).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a measure to count the rows for each building in the table i.e London so that when a slice is set in the report to filter the table by building, and to define a maximum value for the guage which is building specific.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're just using a simple measure to count the rows displayed in the table today which is applied to the guage:&lt;/P&gt;&lt;P&gt;Measure1 = COUNTROWS(reservations)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 11:52:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158164#M49878</guid>
      <dc:creator>shaun-bi</dc:creator>
      <dc:date>2021-10-27T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help declaring max value measure for a guage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158195#M49879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335246" data-lia-user-login="shaun-bi" class="lia-mention lia-mention-user"&gt;shaun-bi&lt;/a&gt;&amp;nbsp;Maybe:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max Measure = 
  VAR __Building = MAX('Table'[Building])
RETURN
  SWITCH(__Building,
    "Building1",44,
    "Building2",33,
    ...
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158195#M49879</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-10-27T12:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help declaring max value measure for a guage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158256#M49881</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="335246" data-lia-user-login="shaun-bi" class="lia-mention lia-mention-user"&gt;shaun-bi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you need a new measure to get the capacity number based on the currently filtered building ? How about a new measure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxValue = SELECTEDVALUE (reservations[capacity number]) , 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxValue = MAX(reservations[capacity number])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:17:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158256#M49881</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2021-10-27T12:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help declaring max value measure for a guage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158305#M49883</link>
      <description>&lt;P&gt;Thanks, this sets the maximums perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I combine that with the countrows to compare the table data to the maximum value. As right now, the gauge is just displaying the maximum values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used BI for 2 hours only so sorry for the newbie questions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 12:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2158305#M49883</guid>
      <dc:creator>shaun-bi</dc:creator>
      <dc:date>2021-10-27T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help declaring max value measure for a guage?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2165791#M50165</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I can clearly understand your requirement, you want to create a gauge chart to display the comparison between your maximum capacity number and current capacity number, right? I think you can achieve your requirement by creating some measures like this:&lt;/P&gt;
&lt;P&gt;This is the test data I created based on your description:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;maximum capacity number =

MAX('reservations'[capacity number])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Current capacity numbers = COUNT(reservations[buildings])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Max = maxX(ALL(reservations),[capacity number])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Min = 0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can create a gauge chart and place it like this, then you can get what you want, like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can download my test pbix file below&lt;/P&gt;
&lt;P&gt;Thank you very much!&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 _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 08:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-declaring-max-value-measure-for-a-guage/m-p/2165791#M50165</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-11-01T08:32:43Z</dc:date>
    </item>
  </channel>
</rss>

