Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PhilippeMuniesa
Resolver I
Resolver I

Filters

Hello,

I start with PowerBi and dax

I built a PowerPivot Excel 2019 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

ex: 2019 only ex: 2019, and 2018 ex: 2019, 2018 and 2017

I build comparative reports

with, in columns the exercises online

accounts in value the balances
>> Amount_signé_m: = SUM ('Concatenation_FEC' [Credit]) - SUM ('Concatenation_FEC' [Debit])

and the variation in value between fiscal years
>> Var N-1 Mt_sign_FEC: = [Amount_signé_m] - CALCULATE ([Amount_signé_m]; SAMEPERIODLASTYEAR (Gestion_exercise [Date_cloture]))
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.

Project and assiociated files download link

https://www.dropbox.com/sh/2afnfc8jz09m29d/AABUwgS9cm52UOSbiUo9mZH3a?dl=0
I don't know how to do this, and any help would be greatly appreciated.

Thanks a lot

Philippe Muniesa
0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors