<?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: Double row one result in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4027869#M159123</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368764" data-lia-user-login="Cocrodile" class="lia-mention lia-mention-user"&gt;Cocrodile&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There are many ways to achive your required outputs and one of them is to use the dax formula like below to create a calculated table which doesn't contain duplicate rows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = calculatetable(distinct('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach a pbix file as an example.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jul 2024 05:03:00 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-07-06T05:03:00Z</dc:date>
    <item>
      <title>Double row one result</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4027259#M159072</link>
      <description>&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#008000"&gt;DTA&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#666699"&gt;ID&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF6600"&gt;VALUE&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-07-01&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;12345&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-07-01&lt;/TD&gt;&lt;TD&gt;12345&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-07-01&lt;/TD&gt;&lt;TD&gt;12347&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I need to create a measurement that makes me output Value= 8 for ID=12345 when the DTA is the same.&lt;/P&gt;&lt;P&gt;I Don't want sum but distinct&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4027259#M159072</guid>
      <dc:creator>Cocrodile</dc:creator>
      <dc:date>2024-07-05T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Double row one result</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4027869#M159123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368764" data-lia-user-login="Cocrodile" class="lia-mention lia-mention-user"&gt;Cocrodile&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There are many ways to achive your required outputs and one of them is to use the dax formula like below to create a calculated table which doesn't contain duplicate rows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = calculatetable(distinct('Table'))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach a pbix file as an example.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 05:03:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4027869#M159123</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-07-06T05:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Double row one result</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4029464#M159261</link>
      <description>&lt;P&gt;must return all the results with the max value, by necessity I need all the rows because I have other information&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 06:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4029464#M159261</guid>
      <dc:creator>Cocrodile</dc:creator>
      <dc:date>2024-07-08T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Double row one result</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4033591#M159693</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="368764" data-lia-user-login="Cocrodile" class="lia-mention lia-mention-user"&gt;Cocrodile&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a calculated column and here is the DAX code.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR CurrentRowDTA = 'Table'[DTA]
VAR CurrentRowID = 'Table'[ID]
VAR CurrentRowVALUE = 'Table'[VALUE]
RETURN
    IF (
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER (
                ALL ( 'Table' ),
                'Table'[DTA] = CurrentRowDTA
                    &amp;amp;&amp;amp; 'Table'[ID] = CurrentRowID
                    &amp;amp;&amp;amp; 'Table'[VALUE] = CurrentRowVALUE
            )
        ) &amp;gt; 1,
        1,
        0
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&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;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 03:29:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Double-row-one-result/m-p/4033591#M159693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T03:29:25Z</dc:date>
    </item>
  </channel>
</rss>

