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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.