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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Syndicate_Admin
Administrator
Administrator

Create column by applying date filters

Hello Good morning I am new to the community, I appreciate your help with the following:

I have a column with the benefits of some projects, and another column with the date the project was closed, I need to add a column that shows me the benefits of the projects that were closed during the current year until the previous month, I have tried several ways but I go to the community since I have not found the solution.

Example

ProjectBenefitClosing dateBenefits until the previous month (This is the one I do not know how to get out)
A1017/01/202310
B2020/02/20230
C1515/12/20220 (you should not add it to me xq is not from the current year)
D3013/01/202330

In this scenario I assume that the current month is February and therefore it will show me the benefits that have been achieved until

January, but in the month March the Column "Benefits to the previous month" should show me the benefits of January and February and so on.

It is worth clarifying that I also have projects from previous years but I am only interested in seeing the year 2023.

Thank you in advance for any help, guidance you can give me.

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Thanks for the help

amitchandak
Super User
Super User

@Syndicate_Admin , No very clear

 

Calculate(Sum(Table[Benefit]), filter(Table, Table[Closing date] <= eomonth(Today(), -1) ))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.