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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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) ))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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