<?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: Get the value of a column subject to the max value of another colum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1528868#M29963</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273592" data-lia-user-login="AgustinLopez" class="lia-mention lia-mention-user"&gt;AgustinLopez&lt;/a&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;meausre =&lt;BR /&gt;var _max = maxx(allselected(Table), Table[week])&lt;BR /&gt;return &lt;BR /&gt;calculate(sum(Table[Kilos]), filter(Table, Table[week] =_max))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But better to have separate week table&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 13:54:45 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-12-02T13:54:45Z</dc:date>
    <item>
      <title>Get the value of a column subject to the max value of another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1528773#M29961</link>
      <description>&lt;P&gt;Hello!, I'm new with this of Power Bi, and I'm struggling to get a Dax formula to work properly.&lt;BR /&gt;&lt;BR /&gt;I have the following in example.&lt;BR /&gt;&lt;BR /&gt;Week&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Kilos&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&lt;BR /&gt;&lt;BR /&gt;And also, a slicer with the weeks.&lt;BR /&gt;&lt;BR /&gt;I need a Dax that shows in a label the kilos of the week that is max of the slicer.&lt;BR /&gt;I.e.&lt;BR /&gt;Slicer is from week 2-4, the label has to show 40 Kilos&lt;BR /&gt;if Slicer is from week 2-3, the label has to show 30 kilos&lt;BR /&gt;&lt;BR /&gt;Thanks for your help in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 12:54:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1528773#M29961</guid>
      <dc:creator>AgustinLopez</dc:creator>
      <dc:date>2020-12-02T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value of a column subject to the max value of another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1528868#M29963</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273592" data-lia-user-login="AgustinLopez" class="lia-mention lia-mention-user"&gt;AgustinLopez&lt;/a&gt; , Try a measure like&lt;/P&gt;
&lt;P&gt;meausre =&lt;BR /&gt;var _max = maxx(allselected(Table), Table[week])&lt;BR /&gt;return &lt;BR /&gt;calculate(sum(Table[Kilos]), filter(Table, Table[week] =_max))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But better to have separate week table&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 13:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1528868#M29963</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-02T13:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value of a column subject to the max value of another colum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1530864#M30036</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273592" data-lia-user-login="AgustinLopez" class="lia-mention lia-mention-user"&gt;AgustinLopez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are going to use the measure in a card visual, this should suffice:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =  MAX(Table1[Kilos])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 11:26:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-the-value-of-a-column-subject-to-the-max-value-of-another/m-p/1530864#M30036</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-12-03T11:26:28Z</dc:date>
    </item>
  </channel>
</rss>

