<?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 New to Power BI (DAX) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3349947#M125786</link>
    <description>&lt;P&gt;Hi guys, just started to learn power bi.&lt;/P&gt;&lt;P&gt;Would like to understand why error happens when I input the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUM(DISTINCT('Jun23 Data'[INCOME_AMT]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error returned: The SUM function only accepts a column reference as an argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming below is my dataset&lt;/P&gt;&lt;P&gt;Month : Income_amt&lt;/P&gt;&lt;P&gt;Jan : 100&lt;/P&gt;&lt;P&gt;Feb : 100&lt;/P&gt;&lt;P&gt;March : 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps: I know this formula doesn't make sense... to sum distinct values for monthly income. But i just wanna find out how the dax works and why i cant get 300 in total.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 02:30:03 GMT</pubDate>
    <dc:creator>Chriswyy</dc:creator>
    <dc:date>2023-07-26T02:30:03Z</dc:date>
    <item>
      <title>New to Power BI (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3349947#M125786</link>
      <description>&lt;P&gt;Hi guys, just started to learn power bi.&lt;/P&gt;&lt;P&gt;Would like to understand why error happens when I input the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SUM(DISTINCT('Jun23 Data'[INCOME_AMT]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error returned: The SUM function only accepts a column reference as an argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming below is my dataset&lt;/P&gt;&lt;P&gt;Month : Income_amt&lt;/P&gt;&lt;P&gt;Jan : 100&lt;/P&gt;&lt;P&gt;Feb : 100&lt;/P&gt;&lt;P&gt;March : 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps: I know this formula doesn't make sense... to sum distinct values for monthly income. But i just wanna find out how the dax works and why i cant get 300 in total.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 02:30:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3349947#M125786</guid>
      <dc:creator>Chriswyy</dc:creator>
      <dc:date>2023-07-26T02:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: New to Power BI (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350057#M125792</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am not wrong, DISTINCT DAX function returns a table.&lt;/P&gt;
&lt;P&gt;However, SUM DAX function needs a column.&lt;BR /&gt;Please try something like below.&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;Or,&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected result measure: = 
VAR _t =
    SUMMARIZE ( Data, Data[Income_amt] )
RETURN
    SUMX ( _t, Data[Income_amt] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected result measure V2: = 
VAR _t =
    DISTINCT(Data[Income_amt])
RETURN
    SUMX ( _t, Data[Income_amt] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 03:19:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350057#M125792</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-07-26T03:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: New to Power BI (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350181#M125796</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; hmm.. I thought it will return a column based on the documentation&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 04:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350181#M125796</guid>
      <dc:creator>Chriswyy</dc:creator>
      <dc:date>2023-07-26T04:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: New to Power BI (DAX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350788#M125817</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594270" data-lia-user-login="Chriswyy" class="lia-mention lia-mention-user"&gt;Chriswyy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It returns a table with an unique column...That's why you need to use Sumx.&lt;BR /&gt;Check this at:&amp;nbsp;&lt;A href="https://dax.guide/distinct/#:~:text=DISTINCT%20DAX%20Function%20(Table%20manipulation)&amp;amp;text=Returns%20a%20one%20column%20table,for%20a%20table%20expression%20argument" target="_blank" rel="noopener"&gt;https://dax.guide/distinct/#:~:text=DISTINCT%20DAX%20Function%20(Table%20manipulation)&amp;amp;text=Returns%20a%20one%20column%20table,for%20a%20table%20expression%20argument&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Or the official link:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/distinct-function-dax" target="_blank"&gt;https://learn.microsoft.com/en-us/dax/distinct-function-dax&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 10:35:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-to-Power-BI-DAX/m-p/3350788#M125817</guid>
      <dc:creator>mlsx4</dc:creator>
      <dc:date>2023-07-26T10:35:57Z</dc:date>
    </item>
  </channel>
</rss>

