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

View all the Fabric Data Days sessions on demand. View schedule

Reply
eilidh3
Frequent Visitor

YTD and status filter not working

Hi all, 

 

I'm looking for some of your expertise 🙂  

 

Can someone shed some light on the below query:

 

I am looking to do a YTD calculation for all my opportunnities that are closed as won - Status = "Won".  I currently have the below DAX however no data comes back...  Does anyone have any ideas?

 

YTD Actual Contract Award Value =

var Calc = TOTALYTD(SUMX(FILTER(Opportunities, Opportunities[Status] = "Won"), Opportunities[Estimated Final Value]),'Date Table'[Date],ALL'Date Table'[Date], "06/30")

RETURN

If (ISBLANK(Calc), 0, Calc)

 

Thanks in advance 🙂

1 REPLY 1
MAwwad
Solution Sage
Solution Sage

Try

 

YTD Actual Contract Award Value = VAR Calc = TOTALYTD( SUMX( FILTER(Opportunities, Opportunities[Status] = "Won"), Opportunities[Estimated Final Value] ), 'Date Table'[Date], ALL('Date Table'), DATE( YEAR(TODAY()), 1, 1 ) ) RETURN IF( ISBLANK(Calc), 0, Calc )

This formula calculates the YTD Actual Contract Award Value from the beginning of the current year to the current date for all the opportunities that are closed as 'Won'. Make sure to replace 'Date Table' and 'Opportunities' with the actual names of your tables.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors