<?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 Create a measure to get the entire month value based on selected date. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-to-get-the-entire-month-value-based-on-selected/m-p/3266914#M120956</link>
    <description>&lt;P&gt;Hi, I am trying to build a report which needs a DAX that I am having some trouble with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table which has the following structure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to create a report using a matrix visual that looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The issue that I am facing is wit hthe Month Amount_EUR measure. The user is going to select any 1 date (Invoice date) in th date slicer and then based on that the report should show the Month Amount for that entire month. One more point to note is that there may not be any invoice created for a specific country- legal entity pair for that selected date but there many by a value for some other date in that month. So in this case as well we should get the month amount_eur value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any helo would be much appriciated and if you need more information or something is not clear please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2023 21:58:02 GMT</pubDate>
    <dc:creator>Pratik1802</dc:creator>
    <dc:date>2023-06-03T21:58:02Z</dc:date>
    <item>
      <title>Create a measure to get the entire month value based on selected date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-to-get-the-entire-month-value-based-on-selected/m-p/3266914#M120956</link>
      <description>&lt;P&gt;Hi, I am trying to build a report which needs a DAX that I am having some trouble with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table which has the following structure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to create a report using a matrix visual that looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The issue that I am facing is wit hthe Month Amount_EUR measure. The user is going to select any 1 date (Invoice date) in th date slicer and then based on that the report should show the Month Amount for that entire month. One more point to note is that there may not be any invoice created for a specific country- legal entity pair for that selected date but there many by a value for some other date in that month. So in this case as well we should get the month amount_eur value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any helo would be much appriciated and if you need more information or something is not clear please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 21:58:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-to-get-the-entire-month-value-based-on-selected/m-p/3266914#M120956</guid>
      <dc:creator>Pratik1802</dc:creator>
      <dc:date>2023-06-03T21:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure to get the entire month value based on selected date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-to-get-the-entire-month-value-based-on-selected/m-p/3267810#M121014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570488" data-lia-user-login="Pratik1802" class="lia-mention lia-mention-user"&gt;Pratik1802&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a table and a measure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = VALUES('Table'[INVOICE_DATE])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;month amount_eur = 
 var _a=SELECTEDVALUE('Table 2'[INVOICE_DATE])
 var _b= CALCULATE(SUM('Table'[Today Amount_Eur]),FILTER(ALL('Table'),'Table'[COUNTRY_ID]=MAX('Table'[COUNTRY_ID]) &amp;amp;&amp;amp; 'Table'[LEGAL_ENTITY_ID]=MAX('Table'[LEGAL_ENTITY_ID]) &amp;amp;&amp;amp; YEAR('Table'[INVOICE_DATE])=YEAR(_a) &amp;amp;&amp;amp; MONTH('Table'[INVOICE_DATE]) =MONTH(_a)))
 return _b&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 06:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-to-get-the-entire-month-value-based-on-selected/m-p/3267810#M121014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-05T06:35:41Z</dc:date>
    </item>
  </channel>
</rss>

