<?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: Calculate cost price for the whole year based on  &amp;quot;Calendar[Year]&amp;quot;, not by other date slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3972771#M154053</link>
    <description>&lt;P&gt;Wow, it works.&amp;nbsp; You are so amazing. Thank you very much. My day is brighter now.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 02:57:57 GMT</pubDate>
    <dc:creator>PMY1965</dc:creator>
    <dc:date>2024-06-05T02:57:57Z</dc:date>
    <item>
      <title>Calculate cost price for the whole year based on  "Calendar[Year]", not by other date slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3970265#M153981</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have this measure to calculate my Cost Price for the whole year, based on the slicer&amp;nbsp; "Calendar[Year]". I do have many other date slicers.&amp;nbsp; I still only get the value for the month selected&amp;nbsp;"Calendar[Month]", not the whole year. Please help.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note:&amp;nbsp; I edited my formular , sorry for my previous one.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CostPriceForThisYear = CALCULATE( SUM('GL_LedgerTrans'[Credit]), FILTER( ALLSELECTED('GL_LedgerTrans'), 'GL_LedgerTrans'[OffsetAcctID-3] = "632" &amp;amp;&amp;amp; 'GL_LedgerTrans'[AccountID-4] = "1541" &amp;amp;&amp;amp; YEAR('GL_LedgerTrans'[TransDate]) IN values('Calendar'[Year]) ), REMOVEFILTERS('Calendar'), KEEPFILTERS(VALUES('Calendar'[Year])) )&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Jun 2024 06:51:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3970265#M153981</guid>
      <dc:creator>PMY1965</dc:creator>
      <dc:date>2024-06-04T06:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cost price for the whole year based on  "Calendar[Year]", not by other date slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3970589#M153998</link>
      <description>&lt;P&gt;Hard to say without more info on your report and especiallly the sematic model relationship, but if there is an active relationship between that fact table and the Calendar table, try something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CostPriceForThisYear = CALCULATE( SUM('GL_LedgerTrans'[Credit])
	, 'GL_LedgerTrans'[OffsetAcctID-3] = "632" 
	, 'GL_LedgerTrans'[AccountID-4] = "1541"
	, ALL('Calendar')
	, VALUES('Calendar'[Year]))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jun 2024 08:01:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3970589#M153998</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-06-04T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate cost price for the whole year based on  "Calendar[Year]", not by other date slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3972771#M154053</link>
      <description>&lt;P&gt;Wow, it works.&amp;nbsp; You are so amazing. Thank you very much. My day is brighter now.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 02:57:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-cost-price-for-the-whole-year-based-on-quot-Calendar/m-p/3972771#M154053</guid>
      <dc:creator>PMY1965</dc:creator>
      <dc:date>2024-06-05T02:57:57Z</dc:date>
    </item>
  </channel>
</rss>

