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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Syndicate_Admin
Administrator
Administrator

Automatically assign start and end date segmentation dates (between)

Hello

I have a segmentation filter which I have put a filter on so that it comes out on the day we are, so good. The thing is, I'd like to put the start date a year ago and the end date today.

For the filter I have the following column:

Fecha Actual = IF(CALENDARIO[Date] = TODAY(),"si","no")

This changes both the initial and the final for me.

apenaranda_1-1701694079236.png

Is there a way to do it?

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @apenaranda ,

You can use relative date slicer to achieve it just as shown in the below screenshot:

Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn

vyiruanmsft_0-1701856168890.png

Best Regards

View solution in original post

3 REPLIES 3
Villezekeviking
Most Valuable Professional
Most Valuable Professional

You can make use of my DAX Calendar that has offset-columns for days, weeks, months, quarters and years from today for any kind of relative date filtering!

Set Year days offset between -365 and 0 for the last rolling year.


You'll find it here:
https://www.villezekeviking.com/dax-tables-calendar-and-time/

Anonymous
Not applicable

Hi @apenaranda ,

You can use relative date slicer to achieve it just as shown in the below screenshot:

Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn

vyiruanmsft_0-1701856168890.png

Best Regards

Anonymous
Not applicable

StartDate = DATEADD( DateField, -1, year)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors