<?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: VLOOKUP from Excel to Power Bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2308612#M57318</link>
    <description>&lt;P&gt;You can write a measure like this to get the $180.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;CALCULATE (
    SUM ( Sales[Net Revenue] ),
    Sales[Material] IN VALUES ( Detailing[Material Code] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a better solution would probably be to have a dimension table that has all of the material codes and an extra column that categorized them into whatever categories you want (where 101, 102, 200 are all in the "Detailing" category). If you have this dimension table related to your sales table, then you don't need to write measures to do the filtering; you can add a slicer on the category and select whichever ones you want.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 23:02:09 GMT</pubDate>
    <dc:creator>AlexisOlson</dc:creator>
    <dc:date>2022-01-28T23:02:09Z</dc:date>
    <item>
      <title>VLOOKUP from Excel to Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2308486#M57309</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am recently new to Power BI and I am struggling on a project. I am trying to use LOOKUPVALUE but can't seem to figure it out. I have confidential data, so I've created example tables with what I am trying to achieve. I am trying to lookup the material code from the sales table and see if it is on the Detail Only Code table. See below tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to eliminate the last two columns in excel and have Power Bi add a calculated column. Essentially, my end goal to to have the revenue from the Detail service alone. I also want the revenue from any sales order that included a Detailing line item. This is where I get the total ticket column. I have pivot tables in excel but want to visualize it on Power BI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any suggestions for translating these results in Power BI using the first 5 columns. Thanks in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a link to my spreadsheet.&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/1aLRY67p4U1MWQDpUJSRLZkjLCYwHw9bp/edit?usp=sharing&amp;amp;ouid=100525829390114684689&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1aLRY67p4U1MWQDpUJSRLZkjLCYwHw9bp/edit?usp=sharing&amp;amp;ouid=100525829390114684689&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 20:45:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2308486#M57309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T20:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: VLOOKUP from Excel to Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2308612#M57318</link>
      <description>&lt;P&gt;You can write a measure like this to get the $180.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;CALCULATE (
    SUM ( Sales[Net Revenue] ),
    Sales[Material] IN VALUES ( Detailing[Material Code] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a better solution would probably be to have a dimension table that has all of the material codes and an extra column that categorized them into whatever categories you want (where 101, 102, 200 are all in the "Detailing" category). If you have this dimension table related to your sales table, then you don't need to write measures to do the filtering; you can add a slicer on the category and select whichever ones you want.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 23:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2308612#M57318</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-01-28T23:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: VLOOKUP from Excel to Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2316596#M57729</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;;&lt;/P&gt;
&lt;P&gt;You could create two measures about it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum in = CALCULATE(SUM('Sales Table'[Net Revenue]),FILTER('Sales Table',[Material] in VALUES('Detail Only Code'[Material Code])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Customersum =
CALCULATE (
    SUM ( 'Sales Table'[Net Revenue] ),
    FILTER (
        'Sales Table',
        [Customer]
            IN SUMMARIZE (
                FILTER (
                    'Sales Table',
                    [Material] IN VALUES ( 'Detail Only Code'[Material Code] )),
                [Customer])))
&lt;/LI-CODE&gt;
&lt;P&gt;The final output is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Community Support Team_ Yalan Wu&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 01:48:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/VLOOKUP-from-Excel-to-Power-Bi/m-p/2316596#M57729</guid>
      <dc:creator>v-yalanwu-msft</dc:creator>
      <dc:date>2022-02-03T01:48:45Z</dc:date>
    </item>
  </channel>
</rss>

