<?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: Sum of Days in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3338858#M125281</link>
    <description>&lt;P&gt;Thank Stephen&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 14:38:14 GMT</pubDate>
    <dc:creator>eddins2020</dc:creator>
    <dc:date>2023-07-19T14:38:14Z</dc:date>
    <item>
      <title>Sum of Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3325261#M124511</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am needing guidance on creating a DAX expression to sum of days: do create a new measure, or create a new column to add to the data set?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:54:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3325261#M124511</guid>
      <dc:creator>eddins2020</dc:creator>
      <dc:date>2023-07-11T12:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3328315#M124657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="551809" data-lia-user-login="eddins2020" class="lia-mention lia-mention-user"&gt;eddins2020&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It depends on your use case. If you want to add the sum of days as a new column to the data set, you can use a calculated column. If you want to create a new measure, you can use a DAX expression. Measures are used to aggregate numeric data values, such as sums, averages, minimum or maximum values, counts, or more advanced calculations you create yourself using a DAX formula. If you want to create a measure, you can use the SUMX function to sum the values of a column that contains days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose you have a column named "Days", and you can use the following DAX expression to create a new measure that adds all the values in the "Days" column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Days = SUM('Table'[Days])&lt;/LI-CODE&gt;
&lt;P&gt;This creates a measure named Total Days that adds all the values in the Days column. You can use this measure in Power BI Desktop to create reports or visualizations.&lt;/P&gt;
&lt;P&gt;If you want to add the sum of days as a new column in the dataset, you can use the following formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=SUM([Days])&lt;/LI-CODE&gt;
&lt;P&gt;This creates a new column named "Total Days" that adds all the values in the "Days" column. You can use this new column to create reports or visualizations in Excel .&lt;/P&gt;
&lt;P&gt;Hope this helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 01:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3328315#M124657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T01:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Days</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3338858#M125281</link>
      <description>&lt;P&gt;Thank Stephen&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 14:38:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Days/m-p/3338858#M125281</guid>
      <dc:creator>eddins2020</dc:creator>
      <dc:date>2023-07-19T14:38:14Z</dc:date>
    </item>
  </channel>
</rss>

