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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Completed YTD Total query

Hi I want to add a filter note that will only sum the total for the completed months. My existing DAX code is:

 

Current Year Transactions = CALCULATE (
SUM (VW_Transactions[transaciton_id] ),
FILTER (
'Date',
'Date'[MonthNameShort] = 'PBP Forecast'[Month Only] && 'Date'[Year] = year(today()))
)
 
Please could you advise?
 
 
2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Has your problem been solved? If not , could you please provide more about your sample? What's completed months means?

Best Regards,
Community Support Team _ kalyj

amitchandak
Super User
Super User

@Anonymous , You can use date table and time intelligence

Current Year Transactions = CALCULATE (
SUM (VW_Transactions[transaciton_id] ), datesytd('Date'[Date]))

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

 

 

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
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!

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.