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! Learn more

Reply
Magliari
Frequent Visitor

Power BI Measure Calculation for Previous Month until D-1

Hello Power BI community,

I hope you're all doing well. I have a specific measure, $ RECEITA PERFORMANCE, in my Power BI report. The data source includes a calendar table (D_Calendario) with a column named Date.

I'm trying to create a calculation for this measure that considers the revenue for the previous month up to the day before today's date. For instance, if today is 03/02/2024, I want the measure to display the revenue for the previous month until 02/01/2024.

I already have a filter in place using the Year Month column, which follows the format "Feb 2024." This allows me to select the desired month and year for analysis.

Could anyone provide guidance on how to achieve this calculation in Power BI? Your help would be greatly appreciated!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

EDATE(TODAY(),-1)-1

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

EDATE(TODAY(),-1)-1

Thank you!

I did in this way:

CALCULATE(
    [$ RECEITA PERFORMANCE],
    DATESBETWEEN(D_Calendario[Date],(EOMONTH(TODAY(), -2) + 1),(EDATE(TODAY(),-1)-1)
))



 

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.