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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
EvertonRosa
Helper I
Helper I

Calculate Values based on specific dates

Community, I need a little help here.

 

I have a table like the one bellow and I want to define 2 measures:

 

1) Value of Estimated opportunities, considering first day of each month of the year. 

    In this case, how to consider opportunities that were set to status 'Won' during the month as 'Open' on the first day of the month (past time intelligence)?. Ex: Value of All opportunities, on 01/07/2027, based on 'EstimatedClose' date.

2) Value of Won opportunities, considering last day of each month of the year, based on 'ActualClose" & that EstimatedClose same month. 

 

idOpportunityCreatedonEstimatedCloseActualCloseStatusValue
101/07/202122/07/2021 Open1.000,00
201/07/202122/07/202122/07/2021Won1.000,00
301/07/202122/07/202122/07/2021Won1.000,00
401/07/202122/07/2021 Open1.000,00
501/07/202122/07/2021 Lost1.000,00
1 ACCEPTED SOLUTION

Thanks. I did find a solution.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

You will want to use  a Dates table and use its [date] column for your visuals. Once you have that you can create all your measures as needed.

Thanks. I did find a solution.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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