<?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 Show values until recent month only in a matrix. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3068009#M106306</link>
    <description>&lt;P&gt;Hi I would like to ask for your help. I have this covenant financial report and I need to show the values only until the recent month of the current year. In my visuals I should only have values until December 2022, but it fills the whole year with the same value as the current month and the total was messed up.&lt;/P&gt;&lt;P&gt;I have 4 tables BS Template -Accounts - Journals - Dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Data Model&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Covenant M =&lt;BR /&gt;var _dummyaccount = SELECTEDVALUE('BS Template'[Items Normalize])&lt;BR /&gt;return&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE() ,&lt;BR /&gt;_dummyaccount = "Total Assets", [Total Assets $$],&lt;BR /&gt;_dummyaccount = "Total Liabilities", [Total Liabilities $$],&lt;BR /&gt;_dummyaccount = "Total Equity",[Total Equity $$],&lt;BR /&gt;_dummyaccount = "Total Tangible Assets", [Total Tangible Assets],&lt;BR /&gt;_dummyaccount = "Net Tangible", [Net Tangible],&lt;BR /&gt;_dummyaccount = "In $ terms to find", [In $ terms to find],&lt;BR /&gt;_dummyaccount = "Tangible Asset %", FORMAT([Tangible Asset %], "0.00%"),&lt;BR /&gt;_dummyaccount = "Shortfall", FORMAT([Shortfall], "0.00%"),&lt;BR /&gt;&lt;BR /&gt;CALCULATE([Totals])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 06:47:41 GMT</pubDate>
    <dc:creator>kristel_tulio</dc:creator>
    <dc:date>2023-02-08T06:47:41Z</dc:date>
    <item>
      <title>Show values until recent month only in a matrix.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3068009#M106306</link>
      <description>&lt;P&gt;Hi I would like to ask for your help. I have this covenant financial report and I need to show the values only until the recent month of the current year. In my visuals I should only have values until December 2022, but it fills the whole year with the same value as the current month and the total was messed up.&lt;/P&gt;&lt;P&gt;I have 4 tables BS Template -Accounts - Journals - Dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Data Model&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Covenant M =&lt;BR /&gt;var _dummyaccount = SELECTEDVALUE('BS Template'[Items Normalize])&lt;BR /&gt;return&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE() ,&lt;BR /&gt;_dummyaccount = "Total Assets", [Total Assets $$],&lt;BR /&gt;_dummyaccount = "Total Liabilities", [Total Liabilities $$],&lt;BR /&gt;_dummyaccount = "Total Equity",[Total Equity $$],&lt;BR /&gt;_dummyaccount = "Total Tangible Assets", [Total Tangible Assets],&lt;BR /&gt;_dummyaccount = "Net Tangible", [Net Tangible],&lt;BR /&gt;_dummyaccount = "In $ terms to find", [In $ terms to find],&lt;BR /&gt;_dummyaccount = "Tangible Asset %", FORMAT([Tangible Asset %], "0.00%"),&lt;BR /&gt;_dummyaccount = "Shortfall", FORMAT([Shortfall], "0.00%"),&lt;BR /&gt;&lt;BR /&gt;CALCULATE([Totals])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 06:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3068009#M106306</guid>
      <dc:creator>kristel_tulio</dc:creator>
      <dc:date>2023-02-08T06:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show values until recent month only in a matrix.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3068680#M106372</link>
      <description>&lt;P&gt;please try&amp;nbsp;&lt;/P&gt;&lt;P&gt;Covenant M = var _dummyaccount = SELECTEDVALUE('BS Template'[Items Normalize]) var _recentmonth = MAX('Dates'[Month]) return SWITCH( TRUE() , _dummyaccount = "Total Assets", [Total Assets $$], _dummyaccount = "Total Liabilities", [Total Liabilities $$], _dummyaccount = "Total Equity",[Total Equity $$], _dummyaccount = "Total Tangible Assets", [Total Tangible Assets], _dummyaccount = "Net Tangible", [Net Tangible], _dummyaccount = "In $ terms to find", [In $ terms to find], _dummyaccount = "Tangible Asset %", FORMAT([Tangible Asset %], "0.00%"), _dummyaccount = "Shortfall", FORMAT([Shortfall], "0.00%"),&lt;/P&gt;&lt;P&gt;CALCULATE([Totals], FILTER('Dates', 'Dates'[Month] &amp;lt;= _recentmonth)) )&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3068680#M106372</guid>
      <dc:creator>jaweher899</dc:creator>
      <dc:date>2023-02-08T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Show values until recent month only in a matrix.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3070454#M106536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="447085" data-lia-user-login="jaweher899" class="lia-mention lia-mention-user"&gt;jaweher899&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping! but it seems the measure is not working still.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 23:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-values-until-recent-month-only-in-a-matrix/m-p/3070454#M106536</guid>
      <dc:creator>kristel_tulio</dc:creator>
      <dc:date>2023-02-08T23:29:01Z</dc:date>
    </item>
  </channel>
</rss>

