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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SachinC
Helper V
Helper V

Date Filtering using dates until today's date

Hi,

I have a PowerBI visual that uses relative date filtering, i.e. In This Month which covers 01/06/2019 to 30/06/2019.

However, what I need is this month upto the date it is viewed. Example, if today is 19/06/2019, then I want the filter to be 01/06/2019 to 19/06/2019.  

Please help?
Thanks.

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @SachinC 

 

I’ve created a sample with the date from May 20 to June 24 as below, we can achieve the result filtered by the dates in the same month till today using the measure :

Measure = var today = TODAY()

var tm = MONTH(TODAY())

var ty = YEAR(TODAY())

Return

IF(MAX([Date])<=today&&MONTH(MAX([Date]))=tm&&YEAR(MAX([Date])=ty),1,0)Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And then filter the measure by “1”:Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

Regards,

Dina

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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