<?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: Power BI DAX measure returns duplicates after selecting values from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/4802220#M183707</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having the same problem. However, in my case is not efficient to create a measure for each column from another table because I have a lot of them. Do you think that is there any way to solve the problem editing the measure?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 11:17:42 GMT</pubDate>
    <dc:creator>OnofreBisbal</dc:creator>
    <dc:date>2025-08-20T11:17:42Z</dc:date>
    <item>
      <title>Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202653#M116483</link>
      <description>&lt;P&gt;My problem concerns a measure in PBI DAX with the goal to return the result of:&lt;/P&gt;&lt;P&gt;1 - "the row value of the column price" / "the row value of the column budget"&lt;/P&gt;&lt;P&gt;To achieve this, I wrote the following code:&lt;/P&gt;&lt;P&gt;[notworkingRevenue] = 1 - DIVIDE([Measure Price], [Measure Budget]))) The measures [Measure Budget] and [Measure Price] are simple sums of the regarding columns.&lt;/P&gt;&lt;P&gt;It works fine until I activate the measure and display columns from another table in the visual. It works as long as I display only columns and measures of table Contracts&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or columns of both tables and the measure mentioned above without the "1 - " in front of it, defined as: [workingRevenue] = DIVIDE([Measure Price], [Measure Budget])))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But creates duplicates as soon as I display columns from both tables and the measure [notworkingRevenue).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;A href="https://1drv.ms/u/s!AkQT6sctw33ngrA8uC1mw0quVFyykA?e=snazbB" target="_self"&gt;Link to the dataset&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:11:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202653#M116483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T11:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202677#M116485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;You can use WeTransfer, DropBox, OneDrive or any cloud service to share the the dowload link.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 10:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202677#M116485</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-24T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202778#M116495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your advise! I edited my post and inserted the link to the dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls tell me, if there are any problems with the links or questions with the dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202778#M116495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202847#M116501</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You can add ProjectName as a measure&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;ProjectName = 
MAXX ( 
    Contracts,
    RELATED ( Projects[ProjectName] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:50:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202847#M116501</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-24T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202914#M116511</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;wow that works! Thank you :)) 1. do you have any idea why it doesn't work without&amp;nbsp; it tho? I don't really get, why the -1 one breaks the otherwise working code...&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. And do you know a way. to not show the 4.7 mil in the line with no value for ProjectName?&lt;/P&gt;&lt;P&gt;3. With the given solution I can't filter for the ProjectName correct? Besides I have filters (like date filters, ), I didn't include in the test dataset I created to reproduce the error. Can I just include those into the ProjectName measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:03:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202914#M116511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T13:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202990#M116520</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1. When you place columns from both dimension&amp;nbsp;and fact tables together in a table visual, the engine creates a crossjoin producing all the possible combinations between the two tables. However, by default, power bi hides the rows that produces blank values of all the measures placed in the table visual. This will mostly keep only the existing combinations of the resulted crossjoin table.&lt;/P&gt;
&lt;P&gt;The (-1) or even (+0) i.e. any constant added or subtracted cannot be blank therefore it will force the engine to show the value for all possible combinations. In your case&amp;nbsp; 1 - DIVIDE ( BLANK ( ), BLANK ( ) )= 1 i.e. 100% will be displayed over each and every row of the crossjoin table.&lt;/P&gt;
&lt;P&gt;2. Yes. See below screenshot&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Yes you are right. See below screenshot&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3202990#M116520</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-04-24T13:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3203117#M116532</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/3203117#M116532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-24T14:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI DAX measure returns duplicates after selecting values from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/4802220#M183707</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having the same problem. However, in my case is not efficient to create a measure for each column from another table because I have a lot of them. Do you think that is there any way to solve the problem editing the measure?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 11:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-DAX-measure-returns-duplicates-after-selecting-values/m-p/4802220#M183707</guid>
      <dc:creator>OnofreBisbal</dc:creator>
      <dc:date>2025-08-20T11:17:42Z</dc:date>
    </item>
  </channel>
</rss>

