<?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 to find DAX to Average Vlookup Value Across Multiple Rows With Same Unique Identifier in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1988187#M43966</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on what you described, I think you can use something like AVERAGEX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VLookup_Avg =
AVERAGEX (
    VALUES ( '2021 Production'[Document #] ),
    '2021 Production'[Vlookup No]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without having your data I wasn't able to test, so see if this gets you were you want to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 20:30:05 GMT</pubDate>
    <dc:creator>dedelman_clng</dc:creator>
    <dc:date>2021-07-29T20:30:05Z</dc:date>
    <item>
      <title>Help to find DAX to Average Vlookup Value Across Multiple Rows With Same Unique Identifier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1953016#M42614</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So, I'm trying to figure out a DAX that will take the Lookup (Vlookup) value and average across multiple rows (part numbers), based on the count of rows with a unique identifier (Document #). I'm thinking it should be the LOOKUP value divided by the COUNTIF function, but not sure...can someone provide some insight on how to properly do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below screen shot example you can see, Document #7374 has 3 different "WOMP Tag #" these are part numbers created on each Document. However, on the far right Vlookup Costs &amp;amp; Vlookup Hrs are allocating the totals for that Document 3 different times. I need the totals averaged by 3 or by sum of rows counted with same Document #.&amp;nbsp;&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;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 20:14:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1953016#M42614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-12T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help to find DAX to Average Vlookup Value Across Multiple Rows With Same Unique Identifier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1988187#M43966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on what you described, I think you can use something like AVERAGEX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VLookup_Avg =
AVERAGEX (
    VALUES ( '2021 Production'[Document #] ),
    '2021 Production'[Vlookup No]
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without having your data I wasn't able to test, so see if this gets you were you want to go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 20:30:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1988187#M43966</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2021-07-29T20:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help to find DAX to Average Vlookup Value Across Multiple Rows With Same Unique Identifier</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1989768#M43998</link>
      <description>&lt;P&gt;Thanks for the input. I actually ended up creating another table and through Power Query Editor replicated a CountIF function to count number of lines for each Document #, then through a lookup formula divided that by total costs &amp;amp; labor hours. Probably not the most efficient way, but everything works now! Examples below...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count Doc# Lines = LOOKUPVALUE ( 'W.O. Qty Table '[Count Part #] , 'W.O. Qty Table '[Document #] , '2021 production'[Document #] , 'W.O. Qty Table '[Document #] , '2021 production'[Document #] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Avg Costs = DIVIDE ( '2021 production'[Vlookup Costs] , '2021 production'[Count Doc# Lines] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Avg Hrs = DIVIDE ( '2021 production'[Vlookup Hrs] , '2021 production'[Count Doc# Lines] )&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jul 2021 12:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-find-DAX-to-Average-Vlookup-Value-Across-Multiple-Rows/m-p/1989768#M43998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-30T12:42:25Z</dc:date>
    </item>
  </channel>
</rss>

