<?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: Summarized table from two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3076577#M106989</link>
    <description>&lt;P&gt;thank you very much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;that's perfect, excately what i'm looking for,&lt;/P&gt;&lt;P&gt;you are the best my friend, thank you again&lt;/P&gt;</description>
    <pubDate>Sun, 12 Feb 2023 17:09:40 GMT</pubDate>
    <dc:creator>Sofinobi</dc:creator>
    <dc:date>2023-02-12T17:09:40Z</dc:date>
    <item>
      <title>Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3042620#M104440</link>
      <description>&lt;P&gt;hello community&lt;BR /&gt;please if you can help me,&lt;/P&gt;&lt;P&gt;i have 2 tables : &lt;STRONG&gt;Product&lt;/STRONG&gt; and &lt;STRONG&gt;Date&lt;BR /&gt;&lt;/STRONG&gt;i want to create a summarized table that have a column from Product table (Product) and the (Month year from Date Table)&lt;BR /&gt;result like this image (every product in every month)&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;and then insert the measures to separate the values of each Product and Month.&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/14rV6GUgLfVz3BiA_GnglXbMk6Lew6uo_/view?usp=share_link" target="_self"&gt;Average.pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 12:42:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3042620#M104440</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-25T12:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3042857#M104449</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477984" data-lia-user-login="Sofinobi" class="lia-mention lia-mention-user"&gt;Sofinobi&lt;/a&gt;&amp;nbsp;Look at the file, I hope I understood your task correctly&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 14:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3042857#M104449</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2023-01-25T14:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3044952#M104627</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312820" data-lia-user-login="DimaMD" class="lia-mention lia-mention-user"&gt;DimaMD&lt;/a&gt;&amp;nbsp;thank you for your answer,&lt;/P&gt;&lt;P&gt;but it isn't what i'm looking for&lt;BR /&gt;i need a separate table, not a matrix (or visual)&lt;BR /&gt;i need that for my final result, that i will calculate a measure =&amp;nbsp;&lt;BR /&gt;( [AVG Stock Qte Month]-[AVG Sales Qte Month] ) * [AVG Price month]&lt;BR /&gt;because actualy when i do this calculation, my Averages measures calculate all the values in a column, not averages of each product separately&lt;BR /&gt;thats why i need a table to separate them&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 12:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3044952#M104627</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-26T12:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3045182#M104644</link>
      <description>&lt;P&gt;hi all,&lt;BR /&gt;finnaly i find a sollution for my table, two expressions give the correct values but it still one expression doesn't show any value&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;do you have any idea what is the problem?&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1O2mIL1GM8gLT-pV6I0BAKCX3U35uh2bb/view?usp=share_link" target="_self"&gt;average3.pbix&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:48:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3045182#M104644</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-26T13:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3046695#M104752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="477984" data-lia-user-login="Sofinobi" class="lia-mention lia-mention-user"&gt;Sofinobi&lt;/a&gt;&amp;nbsp;I faced the same problem solving your problem. Let's try to figure out what is wrong with you.&lt;BR /&gt;What do you want to see the correct total when you calculate&amp;nbsp;&lt;SPAN&gt;( [AVG Stock Qte Month]-[AVG Sales Qte Month] ) * [AVG Price month],&lt;BR /&gt;Can you provide your expected result?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 07:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3046695#M104752</guid>
      <dc:creator>DimaMD</dc:creator>
      <dc:date>2023-01-27T07:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3046732#M104758</link>
      <description>&lt;P&gt;never use SUMMARIZE to add columns!&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OverStock Table = &lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Sales_Tab&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Product'&lt;/SPAN&gt;&lt;SPAN&gt;[Product]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Month Year]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"AVG Stock"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Measure'&lt;/SPAN&gt;&lt;SPAN&gt;[AVG Stock Qte Month]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"AVG Sales Qte R3M"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Measure'&lt;/SPAN&gt;&lt;SPAN&gt;[AVG Sales Qte R3M]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"AVG Price"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Measure'&lt;/SPAN&gt;&lt;SPAN&gt;[AVG Price Month]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Jan 2023 08:19:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3046732#M104758</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-01-27T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3047192#M104789</link>
      <description>&lt;P&gt;thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;thats exactely what i want, i'll try to learn more about ADDCOLUMNS and SUMMARIZE.&amp;nbsp;&lt;BR /&gt;please, just one more thing if you can;&amp;nbsp;&lt;BR /&gt;the measure&amp;nbsp;&lt;SPAN&gt;[AVG Stock Qte Month] dont show any value when there is not sales in that month, in this case, i want to show me the value of last month,&lt;BR /&gt;this image&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;in this image the product "AMLI 30" in May 22 was 929,00, i need the same value in June 22&amp;nbsp;&lt;BR /&gt;thank you very very much&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 12:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3047192#M104789</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-27T12:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3049742#M105004</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;GENERATE (
    VALUES ( 'Product'[Product] ),
    VAR _max =
        CALCULATE ( MAX ( 'Sales_Tab'[CreationDate] ) )
    RETURN
        ADDCOLUMNS (
            CALCULATETABLE ( VALUES ( 'Date'[Month Year] ), 'Date'[Date] &amp;lt;= _max ),
            "Avg Stock",
                VAR _date =
                    CALCULATE ( MAX ( 'Date'[Date] ) )
                VAR _mon =
                    FORMAT (
                        MAXX (
                            FILTER ( ALL ( 'Date'[Date] ), [AVG Stock Qte Month] &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= _date ),
                            'Date'[Date]
                        ),
                        "mmm yy"
                    )
                RETURN
                    CALCULATE ( 'Measure'[AVG Stock Qte Month], 'Date'[Month Year] = _mon )
        )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;AVG Stock Qte Month = AVERAGEX(Sales_Tab,Sales_Tab[OldLogicalQuantity])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 07:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3049742#M105004</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-01-30T07:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3050758#M105072</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp; for your answer.&lt;BR /&gt;your solution works, but it doesn't give me result in last months (image attached)&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;on Dec 22 and Jan 23 i have result only for "MYCO"&lt;BR /&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:40:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3050758#M105072</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-01-30T15:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3051362#M105110</link>
      <description>&lt;LI-CODE lang="cpp"&gt;OverStock Table3 = 
GENERATE (
    SUMMARIZE ( 'Sales_Tab', 'Product'[Product] ),
    ADDCOLUMNS (
        VALUES ( 'Date'[Month Year] ),
        "Avg Stock",
            VAR _date =
                CALCULATE ( MAX ( 'Date'[Date] ) )
            VAR _mon =
                FORMAT (
                    MAXX (
                        FILTER ( ALL ( 'Date'[Date] ), [AVG Stock Qte Month] &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= _date ),
                        'Date'[Date]
                    ),
                    "mmm yy"
                )
            RETURN
                CALCULATE ( 'Measure'[AVG Stock Qte Month], 'Date'[Month Year] = _mon )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Jan 2023 00:06:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3051362#M105110</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-01-31T00:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3054806#M105338</link>
      <description>&lt;P&gt;thank you very much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp; that is perfect, you helped me a lot.&lt;BR /&gt;if i need yto add a column from Date table, is this syntax correct?&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;VALUES ( 'Date'[Month Year],'Date'[YearMonth Number] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;tank you so much my friend, i realy apreciate your help&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 09:41:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3054806#M105338</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-02-01T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3056393#M105447</link>
      <description>&lt;LI-CODE lang="cpp"&gt;GENERATE (
    SUMMARIZE ( 'Sales_Tab', 'Product'[Product] ),
    ADDCOLUMNS (
        SUMMARIZE ( 'Date', 'Date'[Month Year], 'Date'[YearMonth Number] ),
        "Avg Stock",
            VAR _date =
                CALCULATE ( MAX ( 'Date'[Date] ) )
            VAR _mon =
                FORMAT (
                    MAXX (
                        FILTER ( ALL ( 'Date'[Date] ), [AVG Stock Qte Month] &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= _date ),
                        'Date'[Date]
                    ),
                    "mmm yy"
                )
            RETURN
                CALCULATE ( 'Measure'[AVG Stock Qte Month], 'Date'[Month Year] = _mon, REMOVEFILTERS('Date') )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 00:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3056393#M105447</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-02-02T00:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Summarized table from two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3076577#M106989</link>
      <description>&lt;P&gt;thank you very much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;that's perfect, excately what i'm looking for,&lt;/P&gt;&lt;P&gt;you are the best my friend, thank you again&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2023 17:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarized-table-from-two-tables/m-p/3076577#M106989</guid>
      <dc:creator>Sofinobi</dc:creator>
      <dc:date>2023-02-12T17:09:40Z</dc:date>
    </item>
  </channel>
</rss>

