<?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 to summarize and create new table all in one step in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158540#M113358</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can modify your DAX formula to achieve this:&lt;BR /&gt;&lt;BR /&gt;Test =&lt;BR /&gt;VAR SummaryTable =&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;'Table',&lt;BR /&gt;"Fields", "Impressions",&lt;BR /&gt;"Month Name", FORMAT('Table'[Date], "MMMM"),&lt;BR /&gt;"Total", [Total Impressions]&lt;BR /&gt;)&lt;BR /&gt;UNION (&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;'Table',&lt;BR /&gt;"Fields", "Link Clicks",&lt;BR /&gt;"Month Name", FORMAT('Table'[Date], "MMMM"),&lt;BR /&gt;"Total", [Total Link Clicks]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;SummaryTable,&lt;BR /&gt;[Month Name],&lt;BR /&gt;[Fields],&lt;BR /&gt;"Total", SUMX(SUMMARY(SummaryTable), [Total])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In this modified formula, we first create a table called SummaryTable that combines the Impressions and Link Clicks columns and calculates the respective totals using the Total Impressions and Total Link Clicks measures.&lt;/P&gt;&lt;P&gt;Then, in the SUMMARIZE function, we use SUMX to calculate the sum of the Total column in the SummaryTable table. This will give us the total of the summarized values.&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any further questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jupsimar Singh.&lt;/P&gt;&lt;P&gt;Mark my post as a solution if it helped you !&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 13:10:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-28T13:10:45Z</dc:date>
    <item>
      <title>How to summarize and create new table all in one step</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158316#M113345</link>
      <description>&lt;P&gt;Hello everyone ,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i want to create a table and then summarize it&amp;nbsp;&lt;BR /&gt;i tried&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Test = 
SUMMARIZE(
    UNION(
        SELECTCOLUMNS(
            'Table',
            "Fields","Impressions",
            "Month Name",FORMAT('Table'[Date],"MMMM"),
            "Total",[Total Impressions]
        ),
        SELECTCOLUMNS(
            'Table',
            "Fields","Link Clicks",
            "Month Name",FORMAT('Table'[Date],"MMMM"),
            "Total",[Total Link Clicks]
        )
    ),
    [Month Name],
    [Fields],
    "Total", SUM([Total])
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;here are the measures&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Impressions = SUM('Table'[Impressions])

Total Link Clicks = SUM('Table'[Link Clicks])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that "SUM([Total])" isnt regognized , it says parameter not the correct type and wont let me do it&lt;BR /&gt;&lt;BR /&gt;i am forced to create the table alone with union then create another new table with summarize&lt;BR /&gt;&lt;BR /&gt;how to do it with one step&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 11:25:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158316#M113345</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-03-28T11:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize and create new table all in one step</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158370#M113348</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="434309" data-lia-user-login="eliasayyy" class="lia-mention lia-mention-user"&gt;eliasayyy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Test =
GROUPBY (
    UNION (
        SELECTCOLUMNS (
            'Table',
            "Fields", "Impressions",
            "Month Name", FORMAT ( 'Table'[Date], "MMMM" ),
            "Total", [Total Impressions]
        ),
        SELECTCOLUMNS (
            'Table',
            "Fields", "Link Clicks",
            "Month Name", FORMAT ( 'Table'[Date], "MMMM" ),
            "Total", [Total Link Clicks]
        )
    ),
    [Month Name],
    [Fields],
    "Total", SUMX ( CURRENTGROUP (), [Total] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Mar 2023 11:54:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158370#M113348</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-28T11:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize and create new table all in one step</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158540#M113358</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can modify your DAX formula to achieve this:&lt;BR /&gt;&lt;BR /&gt;Test =&lt;BR /&gt;VAR SummaryTable =&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;'Table',&lt;BR /&gt;"Fields", "Impressions",&lt;BR /&gt;"Month Name", FORMAT('Table'[Date], "MMMM"),&lt;BR /&gt;"Total", [Total Impressions]&lt;BR /&gt;)&lt;BR /&gt;UNION (&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;'Table',&lt;BR /&gt;"Fields", "Link Clicks",&lt;BR /&gt;"Month Name", FORMAT('Table'[Date], "MMMM"),&lt;BR /&gt;"Total", [Total Link Clicks]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;SummaryTable,&lt;BR /&gt;[Month Name],&lt;BR /&gt;[Fields],&lt;BR /&gt;"Total", SUMX(SUMMARY(SummaryTable), [Total])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In this modified formula, we first create a table called SummaryTable that combines the Impressions and Link Clicks columns and calculates the respective totals using the Total Impressions and Total Link Clicks measures.&lt;/P&gt;&lt;P&gt;Then, in the SUMMARIZE function, we use SUMX to calculate the sum of the Total column in the SummaryTable table. This will give us the total of the summarized values.&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any further questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jupsimar Singh.&lt;/P&gt;&lt;P&gt;Mark my post as a solution if it helped you !&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 13:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-and-create-new-table-all-in-one-step/m-p/3158540#M113358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-28T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

