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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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