<?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 Filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters/m-p/1679255#M34438</link>
    <description>&lt;PRE&gt;&lt;SPAN&gt;Hello,

I start with PowerBi and dax

I built a &lt;U&gt;PowerPivot Excel 2019&lt;/U&gt; project.

This project is based on the accounting entries of several years, all the entry lines of the different years are placed in a "FEC Concatenation" table

The fact base contains an exercise column

The Management_exercise table contains the list of managed exercises

depending on the case, there may be 1, 2 or 3 exercises managed
&lt;BR /&gt;ex: 2019 only
ex: 2019, and 2018
ex: 2019, 2018 and 2017&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I build comparative reports&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;with, in columns the exercises online &lt;BR /&gt;&lt;BR /&gt;accounts in value the balances &lt;BR /&gt;&amp;gt;&amp;gt; Amount_signé_m: = SUM ('Concatenation_FEC' [Credit]) - SUM ('Concatenation_FEC' [Debit]) &lt;BR /&gt;&lt;BR /&gt;and the variation in value between fiscal years &lt;BR /&gt;&amp;gt;&amp;gt; Var N-1 Mt_sign_FEC: = [Amount_signé_m] - CALCULATE ([Amount_signé_m]; SAMEPERIODLASTYEAR (Gestion_exercise [Date_cloture])) &lt;BR /&gt;However, when there are only two fiscal years 2019 and 2018, the 2018 and N-1 variation is equal to the 2018 balance. What I would like is that when N-1 is not present, or when it is the first exercise; the variation column is not displayed. &lt;BR /&gt;&lt;BR /&gt;Project and assiociated files download link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/sh/2afnfc8jz09m29d/AABUwgS9cm52UOSbiUo9mZH3a?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/sh/2afnfc8jz09m29d/AABUwgS9cm52UOSbiUo9mZH3a?dl=0&lt;/A&gt;&lt;BR /&gt;I don't know how to do this, and any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks a lot &lt;BR /&gt;&lt;BR /&gt;Philippe Muniesa&lt;/PRE&gt;</description>
    <pubDate>Sun, 21 Feb 2021 17:16:09 GMT</pubDate>
    <dc:creator>PhilippeMuniesa</dc:creator>
    <dc:date>2021-02-21T17:16:09Z</dc:date>
    <item>
      <title>Filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters/m-p/1679255#M34438</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Hello,

I start with PowerBi and dax

I built a &lt;U&gt;PowerPivot Excel 2019&lt;/U&gt; project.

This project is based on the accounting entries of several years, all the entry lines of the different years are placed in a "FEC Concatenation" table

The fact base contains an exercise column

The Management_exercise table contains the list of managed exercises

depending on the case, there may be 1, 2 or 3 exercises managed
&lt;BR /&gt;ex: 2019 only
ex: 2019, and 2018
ex: 2019, 2018 and 2017&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I build comparative reports&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;with, in columns the exercises online &lt;BR /&gt;&lt;BR /&gt;accounts in value the balances &lt;BR /&gt;&amp;gt;&amp;gt; Amount_signé_m: = SUM ('Concatenation_FEC' [Credit]) - SUM ('Concatenation_FEC' [Debit]) &lt;BR /&gt;&lt;BR /&gt;and the variation in value between fiscal years &lt;BR /&gt;&amp;gt;&amp;gt; Var N-1 Mt_sign_FEC: = [Amount_signé_m] - CALCULATE ([Amount_signé_m]; SAMEPERIODLASTYEAR (Gestion_exercise [Date_cloture])) &lt;BR /&gt;However, when there are only two fiscal years 2019 and 2018, the 2018 and N-1 variation is equal to the 2018 balance. What I would like is that when N-1 is not present, or when it is the first exercise; the variation column is not displayed. &lt;BR /&gt;&lt;BR /&gt;Project and assiociated files download link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/sh/2afnfc8jz09m29d/AABUwgS9cm52UOSbiUo9mZH3a?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/sh/2afnfc8jz09m29d/AABUwgS9cm52UOSbiUo9mZH3a?dl=0&lt;/A&gt;&lt;BR /&gt;I don't know how to do this, and any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks a lot &lt;BR /&gt;&lt;BR /&gt;Philippe Muniesa&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Feb 2021 17:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filters/m-p/1679255#M34438</guid>
      <dc:creator>PhilippeMuniesa</dc:creator>
      <dc:date>2021-02-21T17:16:09Z</dc:date>
    </item>
  </channel>
</rss>

