<?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 EOMONTH formula: comparing values in column with an absolute cell references in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3932791#M153014</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just figured out how to get this working. I first tried working it out in PowerBI as I found out how it works in PowerBI. The function used was&amp;nbsp;&lt;SPAN&gt;SELECTEDVALUE.&lt;/SPAN&gt;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function Selectedvalue is not available in Excel. Therefore I used the following DAX formula in Excel:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;hasonevalue&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Date'[Month end date]),&lt;/SPAN&gt;&lt;SPAN class=""&gt;values&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Date'[Month end date]))&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In combination with the following formula to get my result:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Open AP'[Net due date]&amp;lt;='Open AP'[Month end date],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"No"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 14:14:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-20T14:14:45Z</dc:date>
    <item>
      <title>DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882338#M151525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a new Excel file on which I worked yesterday. In it I have added a&amp;nbsp; DAX formula to compare the current month ends date with the date in column Net due date. This worked fine yesterday.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as we moved to a new month today the values changed which I didn't realise yesterday. The end of month date basically for the file shouldn't change automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Open AP'[Net due date]&amp;lt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;today&lt;/SPAN&gt;&lt;SPAN class=""&gt;(),0),&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"No"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;!--   EndFragment    --&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I therefore uploaded a new sheet in which I will monthly amend the date value manually. Uploaded this file:&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;After amending the initial formula to compare the Net due date with the Month end date value I'm getting the following result:&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;&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;I tried an absolute reference (the usual Excel method), and discovered that it doesn't work in DAX as it references to columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically want to compare the month end date of the reported month (usually the month we are in, but if the file is opened in a new month the details shouldn't change because we are in a new month) with the Net due date and establish if Net due date is bigger, equal to month end date or the Month end date is bigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If absolute reference indeed doesn't work, how can this be solved?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:16:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882338#M151525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-01T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882724#M151534</link>
      <description>&lt;P&gt;See if you can refactor your approach from&amp;nbsp; "EOMONTH of latest (current) date"&amp;nbsp; to "EOMONTH for the latest data date".&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882724#M151534</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-01T13:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882749#M151536</link>
      <description>&lt;P&gt;Hi Ibendlin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if I understand you correctly. I clarified my initial approach above with some additional printscreens. I had ameded the formula from : &lt;SPAN class=""&gt;EOMONTH&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;today&lt;/SPAN&gt;&lt;SPAN class=""&gt;(),0)&amp;nbsp;&lt;/SPAN&gt;to refer to the Date tab&lt;!--  StartFragment   --&gt; &lt;SPAN class=""&gt;'Date'[Month end date].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The result of this was the calculation error shown in my first post (updated pic).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 13:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3882749#M151536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-01T13:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3888927#M151684</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm understanding now that DAX doesn;t do absolute cel references like in Excel. Via a measure I will have to create a column with the data in the cel that I want to reference. Basically a column that will repeat the data of the absolute cel reference on each line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to work on this tomorrow. Will update this post with pics if I get to a solution.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 11:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3888927#M151684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-03T11:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3932521#M152996</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&amp;nbsp;I tried to work this out but not sure how this will work. Any idea's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 12:35:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3932521#M152996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-20T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX EOMONTH formula: comparing values in column with an absolute cell references</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3932791#M153014</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just figured out how to get this working. I first tried working it out in PowerBI as I found out how it works in PowerBI. The function used was&amp;nbsp;&lt;SPAN&gt;SELECTEDVALUE.&lt;/SPAN&gt;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function Selectedvalue is not available in Excel. Therefore I used the following DAX formula in Excel:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;hasonevalue&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Date'[Month end date]),&lt;/SPAN&gt;&lt;SPAN class=""&gt;values&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Date'[Month end date]))&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In combination with the following formula to get my result:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt;('Open AP'[Net due date]&amp;lt;='Open AP'[Month end date],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;"No"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 14:14:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-EOMONTH-formula-comparing-values-in-column-with-an-absolute/m-p/3932791#M153014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-20T14:14:45Z</dc:date>
    </item>
  </channel>
</rss>

