<?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: Need to calculate dax in which Total sum of Month should be constant for all the days. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3944076#M153290</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747986" data-lia-user-login="PrathameshM" class="lia-mention lia-mention-user"&gt;PrathameshM&lt;/a&gt;&amp;nbsp;- You can use the DAX Measure below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR selected_month =
    SELECTEDVALUE ( 'Table'[Month] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Month] = selected_month )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works, please mark it as the solution.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 13:32:01 GMT</pubDate>
    <dc:creator>mark_endicott</dc:creator>
    <dc:date>2024-05-23T13:32:01Z</dc:date>
    <item>
      <title>Need to calculate dax in which Total sum of Month should be constant for all the days.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3941882#M153254</link>
      <description>&lt;P&gt;I need to create a measure to calculate all month's data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. Need to create logic based on the measure column&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Days&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Measure&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;60&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 23 May 2024 06:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3941882#M153254</guid>
      <dc:creator>PrathameshM</dc:creator>
      <dc:date>2024-05-23T06:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to calculate dax in which Total sum of Month should be constant for all the days.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3944076#M153290</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747986" data-lia-user-login="PrathameshM" class="lia-mention lia-mention-user"&gt;PrathameshM&lt;/a&gt;&amp;nbsp;- You can use the DAX Measure below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR selected_month =
    SELECTEDVALUE ( 'Table'[Month] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Month] = selected_month )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 13:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3944076#M153290</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-05-23T13:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to calculate dax in which Total sum of Month should be constant for all the days.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3945468#M153319</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747986" data-lia-user-login="PrathameshM" class="lia-mention lia-mention-user"&gt;PrathameshM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your solution is great, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343036" data-lia-user-login="mark_endicott" class="lia-mention lia-mention-user"&gt;mark_endicott&lt;/a&gt;&amp;nbsp;. It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So easy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(
     SUM('Table'[Sales]),
     ALLEXCEPT('Table','Table'[Month])
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The page effect is as shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any further questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any 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;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 03:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/3945468#M153319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T03:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to calculate dax in which Total sum of Month should be constant for all the days.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/4001120#M155923</link>
      <description>&lt;P&gt;What if we want to calculate the YTD based on the financial year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 05:08:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-calculate-dax-in-which-Total-sum-of-Month-should-be/m-p/4001120#M155923</guid>
      <dc:creator>PrathameshM</dc:creator>
      <dc:date>2024-06-20T05:08:42Z</dc:date>
    </item>
  </channel>
</rss>

