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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-yiruan-msft
Community Support
Community Support

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

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

View solution in original post

3 REPLIES 3
Villezekeviking
Helper II
Helper II

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/

v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3CloudThomas
Super User
Super User

StartDate = DATEADD( DateField, -1, year)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.