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
Anonymous
Not applicable

Target date in current month

Hi,

 

I'm trying to obtain a count for target dates that are in current month?

 

I have below but the target date displays blank in my matrix.

 

Target date in month = CALCULATE(SUM(vwtest[TargetDate]), FILTER( ALL(DimDate),DimDate[Date] = DATE (YEAR ( TODAY ()), MONTH (TODAY () ) , 1 )))
 
Thanks
 
Liam
 
 
2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I'm not sure if have understood you query correctly but please use below DAX if you are looking to Count the rows in target date for today.

 

NewColumn =
CALCULATE ( COUNT ( vwtest[TargetDate] ), DimDate[Date] = TODAY () )

 

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.

 

Regards,

Gaurav Raj Singh

LinkedIN : https://www.linkedin.com/in/gauravrajsingh/

Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for your reply.

 

If thats target date today, what would target date within current month be, E.G. in February?

 

Thanks

 

Liam

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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