<?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 measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833412#M90328</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test CY = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sample'[something]&lt;/SPAN&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sample'[date]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test PY = CALCULATE(&amp;nbsp;sum('sample'[something]),&amp;nbsp;YEAR('sample'[date]) = YEAR(TODAY())-1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Oct 2022 08:55:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-11T08:55:55Z</dc:date>
    <item>
      <title>DAX measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833316#M90324</link>
      <description>&lt;P&gt;Hello everybody,&lt;BR /&gt;i need help on calculating 2 measures in power BI.&lt;BR /&gt;&lt;BR /&gt;I have a table with 2 columns:&lt;BR /&gt;1 - invoice_date&lt;BR /&gt;2 - provided&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;in the invoice_date column there are dates of 2021 and 2022.&lt;BR /&gt;(e.g. 01/02/2021, 05/03/2021, 07/08/2022, 22/12/2022 ...)&lt;/P&gt;&lt;P&gt;I have to create a measure that calculates the provided only for the dates of the previous year (2021) in an absolute way, in the sense that over time the previous year will become 2022 etc ...&lt;/P&gt;&lt;P&gt;Then I have to create a second measure that calculates the provided only for the dates of the current year (2022) here too in an absolute way.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What are the dax formulas that i have to use for these 2 measures?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;BR /&gt;Please help me!&lt;BR /&gt;Erika&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:41:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833316#M90324</guid>
      <dc:creator>Morgana_2022</dc:creator>
      <dc:date>2022-10-11T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833412#M90328</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test CY = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sample'[something]&lt;/SPAN&gt;&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'sample'[date]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;YEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test PY = CALCULATE(&amp;nbsp;sum('sample'[something]),&amp;nbsp;YEAR('sample'[date]) = YEAR(TODAY())-1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833412#M90328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T08:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833527#M90332</link>
      <description>&lt;P&gt;thank you! it works!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2833527#M90332</guid>
      <dc:creator>Morgana_2022</dc:creator>
      <dc:date>2022-10-11T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2834558#M90392</link>
      <description>&lt;P&gt;if I wanted to also calculate the provided of the current month, in an absolute way?&lt;BR /&gt;How can I do?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 16:09:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measures/m-p/2834558#M90392</guid>
      <dc:creator>Morgana_2022</dc:creator>
      <dc:date>2022-10-11T16:09:25Z</dc:date>
    </item>
  </channel>
</rss>

