<?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: How do I replace duplicates values with zero in a column based on other two columns. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4003021#M156140</link>
    <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="626041" data-lia-user-login="Khushboo9966" class="lia-mention lia-mention-user"&gt;Khushboo9966&lt;/a&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;1.A&lt;/SPAN&gt;dd the index column to the powerquery:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;2.Create calculated column references:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR FIRST=CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[Author],'Table'[Count]))
RETURN IF('Table'[Index]=FIRST,'Table'[%],BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Column 2 = 
VAR CI='Table'[Author]
VAR ci2='Table'[Count]
VAR RANKC=RANKX(FILTER('Table','Table'[Author]=CI&amp;amp;&amp;amp;'Table'[Count]=ci2),'Table'[Index],,ASC,Dense)
RETURN IF(RANKC=1,'Table'[%],BLANK())&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;I've given you two options that you can choose according to your needs.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;3.Here's my final result, which I hope meets your requirements.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;4.&lt;/SPAN&gt;Here are some posts that are similar to your problem:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Group-by-ID-Skip-Aggregation/td-p/3976285" target="_blank" rel="noopener"&gt;Solved: Group by ID Skip Aggregation - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;Please find the attached pbix relevant to the case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you have any other questions, please contact us.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Leroy Lu&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider Accept it &lt;STRONG&gt;&lt;EM&gt;as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 09:42:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T09:42:27Z</dc:date>
    <item>
      <title>How do I replace duplicates values with zero in a column based on other two columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4002738#M156095</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three columns. I would like to keep only duplicate value and replace the others with zero. Is there a way to&amp;nbsp; accomplish that?&lt;/P&gt;&lt;P&gt;*Note: Count is calculated column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Author&lt;/TD&gt;&lt;TD&gt;Count&lt;/TD&gt;&lt;TD&gt;%&lt;/TD&gt;&lt;TD&gt;Final outcome&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;30%&lt;/TD&gt;&lt;TD&gt;30%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;30%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;37&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boy&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boy&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boy&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Boy&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 19:45:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4002738#M156095</guid>
      <dc:creator>Khushboo9966</dc:creator>
      <dc:date>2024-06-20T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace duplicates values with zero in a column based on other two columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4003021#M156140</link>
      <description>&lt;P&gt;Hi,&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="626041" data-lia-user-login="Khushboo9966" class="lia-mention lia-mention-user"&gt;Khushboo9966&lt;/a&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;&lt;SPAN&gt;1.A&lt;/SPAN&gt;dd the index column to the powerquery:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;2.Create calculated column references:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR FIRST=CALCULATE(MIN('Table'[Index]),ALLEXCEPT('Table','Table'[Author],'Table'[Count]))
RETURN IF('Table'[Index]=FIRST,'Table'[%],BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Column 2 = 
VAR CI='Table'[Author]
VAR ci2='Table'[Count]
VAR RANKC=RANKX(FILTER('Table','Table'[Author]=CI&amp;amp;&amp;amp;'Table'[Count]=ci2),'Table'[Index],,ASC,Dense)
RETURN IF(RANKC=1,'Table'[%],BLANK())&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;I've given you two options that you can choose according to your needs.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;"&gt;3.Here's my final result, which I hope meets your requirements.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;4.&lt;/SPAN&gt;Here are some posts that are similar to your problem:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Group-by-ID-Skip-Aggregation/td-p/3976285" target="_blank" rel="noopener"&gt;Solved: Group by ID Skip Aggregation - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;Please find the attached pbix relevant to the case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you have any other questions, please contact us.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Leroy Lu&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider Accept it &lt;STRONG&gt;&lt;EM&gt;as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 09:42:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4003021#M156140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace duplicates values with zero in a column based on other two columns.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4758157#M182205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use these formulas for power query, however, it keeps returning syntax errors. I think the issue I have is settign up the calculated column reference. I cannot use these formulas within a custom column field.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you please explain how you are building this column?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 23:17:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-replace-duplicates-values-with-zero-in-a-column-based/m-p/4758157#M182205</guid>
      <dc:creator>NT1234</dc:creator>
      <dc:date>2025-07-09T23:17:41Z</dc:date>
    </item>
  </channel>
</rss>

