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
Syndicate_Admin
Administrator
Administrator

Monthly Variation

Hello Community.

To calculate the monthly variation I use the following measure:

Var. CAPITAL PREVIOUS MONTH ?
VAR MesAnterior = CALCULATE([MontoCapital],DATEADD(Calendario[Fecha],-1,MONTH))
RETURN
DIVIDE(([MontoCapital]-MesAnterior),MesAnterior)
note. The measure Capital Amount - SUM(Sales[CAPITAL])

I have 2 doubts:

If filter for the year 2020 gives me the following:

CristianCL21_0-1620926930096.png

My problem is as follows, if filter for the year 2021, it gives me 2 problems:

1.- Does not calculate the monthly variation in January compared to December 2020 (review previous image where December 2020 IF you have data)

2.- Adds the Month of June 2021, where I have no data.

CristianCL21_1-1620927002536.png

Assaulted from now on.

CristianCL

2 REPLIES 2
Anonymous
Not applicable

Hi @CristianCL21,

Any update for this? Did these suggestions help? If not please share some more detailed information to help us clarify your scenario.
Regards,
Xiaoxin Sheng

Anonymous
Not applicable

Hi @CristianCL21,

I think this should be related to the time intelligence function DATEADD. (its filter range has been defined internal and you can't use all function to ignore/custom the filter effects)

For this scenario, I'd like to suggest you use date function to manually define the filter ranges and calculate, it should better than 'time intelligence' function and allow you to custom on them.

Time Intelligence "The Hard Way" (TITHW)  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors