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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.