<?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 Measure based on a column B value which is equal to Column A Slicer Value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865318#M150993</link>
    <description>&lt;P&gt;I have two tables as shown below with a relationship on id column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Table_1, each id might have the same internal and external title (or)&amp;nbsp; a different internal title to that of the extrernal title.&lt;/P&gt;&lt;P&gt;Lets assume A,B,C,D,E as the titles; So, an id 010 might have an internal title = 'A' and external title = 'E'&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;I am trying to get a measure that will give the SUM(sales) from Table_2 for ids based on external title while I have a slicer with internal title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, I have a slicer for internal title. When I choose the internal title 'A', I want the measure to display the SUM(sales) for ids that have an external title 'A'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below measure but it does not seem to work,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table_2'[sales]), &lt;/SPAN&gt;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;('Table_1'[internal title]), 'Table_1'[external title]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Apr 2024 11:52:19 GMT</pubDate>
    <dc:creator>kk_shp_user</dc:creator>
    <dc:date>2024-04-24T11:52:19Z</dc:date>
    <item>
      <title>Measure based on a column B value which is equal to Column A Slicer Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865318#M150993</link>
      <description>&lt;P&gt;I have two tables as shown below with a relationship on id column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Table_1, each id might have the same internal and external title (or)&amp;nbsp; a different internal title to that of the extrernal title.&lt;/P&gt;&lt;P&gt;Lets assume A,B,C,D,E as the titles; So, an id 010 might have an internal title = 'A' and external title = 'E'&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;I am trying to get a measure that will give the SUM(sales) from Table_2 for ids based on external title while I have a slicer with internal title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, I have a slicer for internal title. When I choose the internal title 'A', I want the measure to display the SUM(sales) for ids that have an external title 'A'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the below measure but it does not seem to work,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table_2'[sales]), &lt;/SPAN&gt;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;('Table_1'[internal title]), 'Table_1'[external title]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Apr 2024 11:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865318#M150993</guid>
      <dc:creator>kk_shp_user</dc:creator>
      <dc:date>2024-04-24T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on a column B value which is equal to Column A Slicer Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865586#M151004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="571744" data-lia-user-login="kk_shp_user" class="lia-mention lia-mention-user"&gt;kk_shp_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to also remove the filter from the internal title column, otherwise this still applies and your result includes only ids with internal title = A and external title = A.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table_2'[sales]),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TREATAS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;('Table_1'[internal title]), 'Table_1'[external title]),REMOVEFILTERS('Table_1'[internal title])))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865586#M151004</guid>
      <dc:creator>Martin_D</dc:creator>
      <dc:date>2024-04-24T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on a column B value which is equal to Column A Slicer Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865796#M151012</link>
      <description>&lt;P&gt;Thanks I'll try this and report back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another query - if I use this measure inside another measure, will it still work?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:32:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3865796#M151012</guid>
      <dc:creator>kk_shp_user</dc:creator>
      <dc:date>2024-04-24T14:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on a column B value which is equal to Column A Slicer Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3867872#M151107</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578180" data-lia-user-login="Martin_D" class="lia-mention lia-mention-user"&gt;Martin_D&lt;/a&gt;&amp;nbsp; Thanks for your contribution on this thread.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="571744" data-lia-user-login="kk_shp_user" class="lia-mention lia-mention-user"&gt;kk_shp_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;What's your final expected result? Could you please provide some sample data&amp;nbsp;&lt;SPAN&gt;(&lt;EM&gt;&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;&lt;/EM&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format&amp;nbsp;and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples? It would be helpful to find out the solution. You can refer the following link to share the required info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C02%7Cv-yiruan%40microsoft.com%7Cfe6489193a1b4b3b2c3108dc521fb7ce%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638475543436019904%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=v%2BEWR63B7CH%2BV5oWqwumB56nQFj9ualyOO61gu8e5SI%3D&amp;amp;reserved=0" target="_blank" rel="noopener nofollow noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Another query - if I use this measure inside another measure, will it still work?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 09:24:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3867872#M151107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-25T09:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on a column B value which is equal to Column A Slicer Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3868146#M151116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="571744" data-lia-user-login="kk_shp_user" class="lia-mention lia-mention-user"&gt;kk_shp_user&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes inside of another measure it will still work, e.g., like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some other measure = [Above measure] + [addition measure]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-a-column-B-value-which-is-equal-to-Column-A/m-p/3868146#M151116</guid>
      <dc:creator>Martin_D</dc:creator>
      <dc:date>2024-04-25T11:23:13Z</dc:date>
    </item>
  </channel>
</rss>

