<?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: Lookupvalue and filter. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2671476#M79687</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;nbsp;And then calculate the addition with the max values&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;You can try this, create the 2 measures&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max_PerMarDes = 
var _maxEta=CALCULATE(MAX('Table'[Etapa1]),ALLEXCEPT('Table','Table'[Market],'Table'[Despatch]))
return IF(MIN('Table'[Etapa1])=_maxEta,_maxEta)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;sum = SUMX('Table',[Max_PerMarDes])&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 02:22:03 GMT</pubDate>
    <dc:creator>v-xiaotang</dc:creator>
    <dc:date>2022-08-01T02:22:03Z</dc:date>
    <item>
      <title>Lookupvalue and filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2666091#M79253</link>
      <description>&lt;P&gt;Hi everybody, i have some question about this.&lt;/P&gt;&lt;P&gt;I have a table that contain multiple columns (Market, Despatch, etapa1).&amp;nbsp; i have 1 MARKET, and a lot of despatch.&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;I need to find de max value of "ETAPA 1" Referred to each "DESPATCH" for example, in this case&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And then calculate the addition with the max values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 21:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2666091#M79253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-27T21:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue and filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2666381#M79281</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating&amp;nbsp; new columns.&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;LI-CODE lang="markup"&gt;MAX Etapa1 CC = 
VAR _maxetapa1 =
    MAXX (
        FILTER (
            Data,
            Data[Market] = EARLIER ( Data[Market] )
                &amp;amp;&amp;amp; Data[Despatch] = EARLIER ( Data[Despatch] )
        ),
        Data[Etapa1]
    )
VAR _condition = Data[Etapa1] = _maxetapa1
RETURN
    DIVIDE ( _condition, _condition ) * _maxetapa1
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MAX Etapa1 CC =
VAR _maxetapa1 =
    MAXX (
        FILTER (
            Data,
            Data[Market] = EARLIER ( Data[Market] )
                &amp;amp;&amp;amp; Data[Despatch] = EARLIER ( Data[Despatch] )
        ),
        Data[Etapa1]
    )
VAR _condition = Data[Etapa1] = _maxetapa1
RETURN
    DIVIDE ( _condition, _condition ) * _maxetapa1
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jul 2022 03:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2666381#M79281</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-28T03:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lookupvalue and filter.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2671476#M79687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Thanks for reaching out to us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;nbsp;And then calculate the addition with the max values&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;You can try this, create the 2 measures&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max_PerMarDes = 
var _maxEta=CALCULATE(MAX('Table'[Etapa1]),ALLEXCEPT('Table','Table'[Market],'Table'[Despatch]))
return IF(MIN('Table'[Etapa1])=_maxEta,_maxEta)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;sum = SUMX('Table',[Max_PerMarDes])&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 02:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lookupvalue-and-filter/m-p/2671476#M79687</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-08-01T02:22:03Z</dc:date>
    </item>
  </channel>
</rss>

