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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Mipd
Frequent Visitor

Use date table for native 'relative date' slicer instead of system date

Hi, 

When using the relative date slicer setting in desktop the dates are not based on my date table. 

Mipd_0-1710763875231.png

The dates seems to be based on system dates and not the max date in the date table. 
Is it possible to change the slicers so the last x months is counted from the max date in the table and not the systeme date. 

Mipd_1-1710764399208.png

(FYI choosen the month (calendar) selectoin is not a option)



6 REPLIES 6
v-heq-msft
Community Support
Community Support

Hi @Mipd ,
According to your description, under Format->Values->Anchor date you can set the Anchor date, which determines the last date of your filtering, you can set the Anchor date to the last date in your date table and then adjust the other parameters. If you don't set the Anchor date, it will filter with the local date as the last time.

vheqmsft_0-1711099943084.png

For more details on relative date, you can check out this document
Create a relative date slicer or filter in Power BI - Power BI | Microsoft Learn

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Can i create a measure that make the anchor date dynamic. I do not want to visit my reports every time new data and new dates are uploaded? 

Hi @Mipd ,
Thank you for your reply, your idea is good.,but pwoer bi now supports static anchors.

Best regards,

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

And the anchor date is the only option manipulate/change the 'relative date slicer', so it does not automatically run on the Power BI system date? 

Mipd
Frequent Visitor

HI @Kishore_KVN 

All the visuals and slicers are connected and filtered the same. And they are based on same date dim. 



Kishore_KVN
Super User
Super User

Hello @Mipd , can you provide some more details like from where the dates in table visual and slicer visual are pulled and also can you explain how your calendar table is created.

 

If I have to give answer with the provided images, I can see there is data till 18th March 2024 in calendar table that is the reason why it is reflecting in the slicer. Can you please align all of them so that you will get your desired output. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors