<?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: Need Help to join 2 measure table with different column value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2785722#M87304</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443428" data-lia-user-login="malfaizal" class="lia-mention lia-mention-user"&gt;malfaizal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;TableC = 
SUMMARIZECOLUMNS (
    'sample_data'[Report_Date],
    'sample_data'[Business],
    'sample_data'[Metric_Code],
    Metric_Value[Level],
    "Metric_Total", CALCULATE ( DISTINCTCOUNT ( 'sample_data'[Ast_netbios] ), ALL ( 'sample_data'[Level] ) ),
    "Metric_Value",
        CALCULATE (
            COUNTROWS ( DISTINCT ( 'sample_data'[netbios] ) ),
            'sample_data'[Level] IN { "P1", "P2", "P3", "P4", "P5" },
            FILTER (
                'sample_data', 
                1 IN { 'sample_data'[P1&amp;gt;5d], 'sample_data'[P2&amp;gt;10d], 'sample_data'[P3&amp;gt;90d], 'sample_data'[P4&amp;gt;180d] }
            )
        ) 
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 22 Sep 2022 04:46:47 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-09-22T04:46:47Z</dc:date>
    <item>
      <title>Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775009#M86593</link>
      <description>&lt;P&gt;i have do some online research but couldn't get the answer, im trying to join 2 measure table with different value into 1 table, but the result is not what i expected. I would to join table A and table B into the table C. The formula i use is summarizecolumn.&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;The result i get.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 12:48:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775009#M86593</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-17T12:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775051#M86601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443428" data-lia-user-login="malfaizal" class="lia-mention lia-mention-user"&gt;malfaizal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Table C =&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;SUMMARIZE ( 'Table', 'Table'[Item1], 'Table'[Item2], 'Table'[Item3] ),&lt;BR /&gt;"Value 1", [Value1],&lt;BR /&gt;"Value 2", CALCULATE ( [Value2], ALLEXCEPT ( 'Table', 'Table'[Item1], 'Table'[Item2] ) )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 14:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775051#M86601</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-17T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775603#M86640</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;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response, but it doesn't work for me, as the table A and table B is a measure table summarize from data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value1 in table A is calculated as distinct count filter to item3 and filter to multiple column based on single value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While value2 from table B is calculated as distinct count and not following table A data value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table A Value1 is total value of the items that having vulnerabilities and Table B Value2 is total item for item1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot share the raw data as it contains sensitive information, appreciate if there is other solutions that only add the Value2 from table B to as new column to table A based on item1, or any other method that helpful.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 04:14:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775603#M86640</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-18T04:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775619#M86642</link>
      <description>&lt;P&gt;Could you please provide a sample pbi document with sample data and measures in place to be able to suggest a solution that works for your case ?&amp;nbsp;&lt;BR /&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 05:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775619#M86642</guid>
      <dc:creator>lazurens2</dc:creator>
      <dc:date>2022-09-18T05:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775635#M86645</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443428" data-lia-user-login="malfaizal" class="lia-mention lia-mention-user"&gt;malfaizal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have you tried the solution? Please share the result that you achieve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 06:27:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775635#M86645</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-18T06:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782590#M87099</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;, power bi couldn't find value1 and value2 from table measure a &amp;amp; b.&lt;BR /&gt;im working on the sample data, will share it here, appreciate if you could help look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 03:48:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782590#M87099</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-21T03:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782619#M87100</link>
      <description>&lt;P&gt;i can only share with you the sample data as shared via link below, as for the measure formula as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To get the Total Asset(Value2), i summarize to Report_Date, Business, and Metric_Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Metric_Total = 
SUMMARIZECOLUMNS(
'sample_data'[Report_Date],
'sample_data'[Business],
'sample_data'[Metric_Code],
"Metric_Total",
CALCULATE(DISTINCTCOUNT('sample_data'[Ast_netbios])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the Total Value(Value1), i summarize to&amp;nbsp;i summarize to Report_Date, Business, Metric_Code and Level with calculate filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Metric_Value = 
SUMMARIZECOLUMNS(
'sample_data'[Report_Date],
'sample_data'[Business],
'sample_data'[Metric_Code],
'sample_data'[Level],
"Metric_Value",
CALCULATE(COUNTROWS(DISTINCT('sample_data'[netbios])),
FILTER('sample_data','sample_data'[Level] = "P1" || 'sample_data'[Level] = "P2" || 'sample_data'[Level] = "P3" || 'sample_data'[Level] = "P4" || 'sample_data'[Level] = "P5"),
FILTER('sample_data','sample_data'[P1&amp;gt;5d] = 1 || 'sample_data'[P2&amp;gt;10d] = 1 || 'sample_data'[P3&amp;gt;90d] = 1 || 'sample_data'[P4&amp;gt;180d] = 1 ))+0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;link to sample data :&amp;nbsp;&lt;A href="https://1drv.ms/x/s!An4H6bLOBuqHhKx8gFtwyPBiGXE5QA?e=Re9Fik" target="_blank"&gt;https://1drv.ms/x/s!An4H6bLOBuqHhKx8gFtwyPBiGXE5QA?e=Re9Fik&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 04:27:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782619#M87100</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-21T04:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782621#M87101</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;, sample data shared on reply to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443572" data-lia-user-login="lazurens2" class="lia-mention lia-mention-user"&gt;lazurens2&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775619/highlight/true#M86642" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2775619/highlight/true#M86642&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 04:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782621#M87101</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-21T04:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782673#M87108</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443428" data-lia-user-login="malfaizal" class="lia-mention lia-mention-user"&gt;malfaizal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please share the DAX formula for Value1 and Value2&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 05:29:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2782673#M87108</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-21T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2783148#M87137</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value2 is a "Metric_Total" as formula below:&lt;/P&gt;&lt;PRE&gt;Metric_Total = 
SUMMARIZECOLUMNS(
'sample_data'[Report_Date],
'sample_data'[Business],
'sample_data'[Metric_Code],
"Metric_Total",
CALCULATE(DISTINCTCOUNT('sample_data'[Ast_netbios])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value1 is a "Metric_Value" as formula below:&lt;/P&gt;&lt;PRE&gt;Metric_Value = 
SUMMARIZECOLUMNS(
'sample_data'[Report_Date],
'sample_data'[Business],
'sample_data'[Metric_Code],
'sample_data'[Level],
"Metric_Value",
CALCULATE(COUNTROWS(DISTINCT('sample_data'[netbios])),
FILTER('sample_data','sample_data'[Level] = "P1" || 'sample_data'[Level] = "P2" || 'sample_data'[Level] = "P3" || 'sample_data'[Level] = "P4" || 'sample_data'[Level] = "P5"),
FILTER('sample_data','sample_data'[P1&amp;gt;5d] = 1 || 'sample_data'[P2&amp;gt;10d] = 1 || 'sample_data'[P3&amp;gt;90d] = 1 || 'sample_data'[P4&amp;gt;180d] = 1 ))+0
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here also a sample data:&amp;nbsp;&lt;A href="https://1drv.ms/x/s!An4H6bLOBuqHhKx8gFtwyPBiGXE5QA?e=Re9Fik" target="_blank" rel="nofollow noopener noreferrer"&gt;https://1drv.ms/x/s!An4H6bLOBuqHhKx8gFtwyPBiGXE5QA?e=Re9Fik&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 07:58:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2783148#M87137</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-21T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2785722#M87304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443428" data-lia-user-login="malfaizal" class="lia-mention lia-mention-user"&gt;malfaizal&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;TableC = 
SUMMARIZECOLUMNS (
    'sample_data'[Report_Date],
    'sample_data'[Business],
    'sample_data'[Metric_Code],
    Metric_Value[Level],
    "Metric_Total", CALCULATE ( DISTINCTCOUNT ( 'sample_data'[Ast_netbios] ), ALL ( 'sample_data'[Level] ) ),
    "Metric_Value",
        CALCULATE (
            COUNTROWS ( DISTINCT ( 'sample_data'[netbios] ) ),
            'sample_data'[Level] IN { "P1", "P2", "P3", "P4", "P5" },
            FILTER (
                'sample_data', 
                1 IN { 'sample_data'[P1&amp;gt;5d], 'sample_data'[P2&amp;gt;10d], 'sample_data'[P3&amp;gt;90d], 'sample_data'[P4&amp;gt;180d] }
            )
        ) 
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 04:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2785722#M87304</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-22T04:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to join 2 measure table with different column value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2786100#M87333</link>
      <description>&lt;P&gt;Superb, this is working for me. Never think of ALL function.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:43:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-join-2-measure-table-with-different-column-value/m-p/2786100#M87333</guid>
      <dc:creator>malfaizal</dc:creator>
      <dc:date>2022-09-22T07:43:40Z</dc:date>
    </item>
  </channel>
</rss>

