<?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: DAX Function to sum values by similar date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769181#M147206</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's not working. It is giving output 1229. I don't know what it is calculating.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any option to create a calculated column for this? I also want to filter it using a P-type column.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 06:36:06 GMT</pubDate>
    <dc:creator>vivekgupta84</dc:creator>
    <dc:date>2024-03-17T06:36:06Z</dc:date>
    <item>
      <title>DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3768855#M147173</link>
      <description>&lt;P&gt;I have attached the data. I need a sum of values for each date. For example,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1 Jan. 19:&amp;nbsp; (1200+275-929-30-464+198+884) = 1134&lt;BR /&gt;&lt;BR /&gt;I have also a slicer in the report So I can filter the values by P1, P2, P3....&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Why, I'm doing this?&lt;/STRONG&gt; I want to calculate the number of days where the total value is greater than 0.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 16:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3768855#M147173</guid>
      <dc:creator>vivekgupta84</dc:creator>
      <dc:date>2024-03-16T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769008#M147181</link>
      <description>&lt;P&gt;Sounds good. What have you tried and where are you stuck?&amp;nbsp; Did you try SUMMARIZECOLUMNS?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 20:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769008#M147181</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-16T20:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769032#M147186</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706867" data-lia-user-login="vivekgupta84" class="lia-mention lia-mention-user"&gt;vivekgupta84&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;below measure might work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var a = SUMX(
    FILTER(ALL('Table'[date],'Table'[value],'Table'[p type]),
    'Table'[date]=MAX('Table'[date])
    ),
   'Table'[value])
return
COUNTX(FILTER(SUMMARIZE('Table','Table'[date],"sd",a),[sd]&amp;gt;0),1)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 16 Mar 2024 20:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769032#M147186</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-03-16T20:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769181#M147206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's not working. It is giving output 1229. I don't know what it is calculating.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any option to create a calculated column for this? I also want to filter it using a P-type column.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 06:36:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769181#M147206</guid>
      <dc:creator>vivekgupta84</dc:creator>
      <dc:date>2024-03-17T06:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769182#M147207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried multiple DAX functions. Yes, I have tried to summarize columns but was unable to get the expected output.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 06:37:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769182#M147207</guid>
      <dc:creator>vivekgupta84</dc:creator>
      <dc:date>2024-03-17T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769518#M147220</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 18:21:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769518#M147220</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-17T18:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769595#M147226</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp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t;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And at the end you put this measure on your panel with a value on 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 17 Mar 2024 21:04:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3769595#M147226</guid>
      <dc:creator>JamesFR06</dc:creator>
      <dc:date>2024-03-17T21:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3771252#M147314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the response. Here is the dataset -&amp;nbsp;&lt;A title="Sample Dataset" href="https://docs.google.com/spreadsheets/d/1ONfzT9f_2jA5daZfztP9L1HSgOBsqX8g/edit?usp=sharing&amp;amp;ouid=105955560537332338579&amp;amp;rtpof=true&amp;amp;sd=true" target="_blank" rel="noopener"&gt;https://docs.google.com/spreadsheets/d/1ONfzT9f_2jA5daZfztP9L1HSgOBsqX8g/edit?usp=sharing&amp;amp;ouid=105955560537332338579&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have attached a short dataset. The data has multiple years of data and around 10 P-type. The data has three columns P-type, Date and value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need a sum of value by date.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Portfolio 1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;1-Jan-19&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Portfolio 2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; 1 -Jan-19&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Portfolio 3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp;1-Jan-19&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-929&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;then the output for 1-Jan-19 is 546.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want this output to be filtered by P-type. So, when I click Portfolio1 in the slicer it will show 1200 only and when I click Portfolio 1 and 2 then it will show 1475.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is about the calculation.&lt;BR /&gt;------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;I want to perform multiple calculations on this summarized output. Like monthly avg., daily avg., count of days where value is greater then 0, Highest and value in a day.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 11:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3771252#M147314</guid>
      <dc:creator>vivekgupta84</dc:creator>
      <dc:date>2024-03-18T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3772124#M147375</link>
      <description>&lt;P&gt;You don't need an explicit computation for that. Put the data in a matrix visual and Power BI will implicitly calculate it for you&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:07:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3772124#M147375</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-18T16:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3773497#M147451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the response. I know that Power BI will calculate these implicitly in the matrix visual. But I need a Card visual to show the data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For example, I have to calculate the count of dates where the value is greater than 0 "or" Maximum value for a date etc.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 06:09:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3773497#M147451</guid>
      <dc:creator>vivekgupta84</dc:creator>
      <dc:date>2024-03-19T06:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Function to sum values by similar date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3773621#M147460</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="706867" data-lia-user-login="vivekgupta84" class="lia-mention lia-mention-user"&gt;vivekgupta84&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no need of calculation&lt;/P&gt;&lt;P&gt;just drag your p-type to slicer and value column to card visual&lt;BR /&gt;&lt;BR /&gt;when you select portfolio 1 then it show 1200&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;when you select portfolio 1 &amp;amp; 2 then it show 1475&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 06:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Function-to-sum-values-by-similar-date/m-p/3773621#M147460</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-03-19T06:49:21Z</dc:date>
    </item>
  </channel>
</rss>

