<?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: multiple columns in calculate function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903026#M94607</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use this measure as values in matrix visual and show visits,file downloads and videos in different rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution that you have provided sums up all 3 columns but i need to show these 3 separately .&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 08:07:59 GMT</pubDate>
    <dc:creator>Jane689</dc:creator>
    <dc:date>2022-11-14T08:07:59Z</dc:date>
    <item>
      <title>multiple columns in calculate function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2902992#M94602</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have created below measure&amp;nbsp; -&lt;/P&gt;&lt;P&gt;measure&amp;nbsp; = CALCULATE(SUM(table[visits]),Allselected(table[pagename]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i want to take sum of other columns also .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know how can i incorporate, other columns like filedownloads,videos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am getting error when i tried this -&lt;/P&gt;&lt;P&gt;measure&amp;nbsp; = CALCULATE(SUM(table[visits]),SUM(table[filedownloads]),SUM(table[videos]),Allselected(table[pagename]))&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 07:52:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2902992#M94602</guid>
      <dc:creator>Jane689</dc:creator>
      <dc:date>2022-11-14T07:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: multiple columns in calculate function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903002#M94603</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but please try the below whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;new measure =
CALCULATE (
    SUMX ( table, table[visits] + table[filedownloads] + table[videos] ),
    ALLSELECTED ( table[pagename] )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Nov 2022 07:58:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903002#M94603</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-14T07:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: multiple columns in calculate function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903026#M94607</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use this measure as values in matrix visual and show visits,file downloads and videos in different rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution that you have provided sums up all 3 columns but i need to show these 3 separately .&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:07:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903026#M94607</guid>
      <dc:creator>Jane689</dc:creator>
      <dc:date>2022-11-14T08:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: multiple columns in calculate function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903034#M94608</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Please share your sample pbix file's link together with how your desired outcome of the visualization looks like, and then I can try to look into it to come up with a more accurate solution.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:11:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2903034#M94608</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-14T08:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: multiple columns in calculate function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2905375#M94774</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444088" data-lia-user-login="Jane689" class="lia-mention lia-mention-user"&gt;Jane689&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create 2 measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAX('Table'[videos])+MAX('Table'[filedownloads])+MAX('Table'[visits])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 2 = var _b=SUMMARIZE('Table','Table'[pagename],"aaa",[Measure])
return
IF(HASONEVALUE('Table'[pagename]),[Measure],SUMX(_b,[aaa]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it still does not help, please provide more details with your desired output and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 05:40:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiple-columns-in-calculate-function/m-p/2905375#M94774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T05:40:14Z</dc:date>
    </item>
  </channel>
</rss>

