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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Lauraneville
New Member

PowerBI Preset date selection and custom selection with comparison period

Hello,

 

We are trying to make a preset date list that compares the same time period last year, whilst also having the option to use a custom filter with the ability to also use a custom comparison date.

 

For some context we have set up the preset date list and have added a dax calcualtion to show the same time period for the previous year i.e. it will show 01/05/2024 compared to 01/05/2023. However, we can not then get a custom date selection with the option to use an additional calendar for a comparison.

 

We've found loads of videos showing how to do this for a single date, but not including a comparison date. Any help would be hugely appreciated!

 

Thanks in Advance!

Lauraneville_0-1715872327217.png

Lauraneville_0-1715872626114.png

 

@DataContet 

2 REPLIES 2
Anonymous
Not applicable

Hi @Lauraneville ,

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!

 

Best Regards,

Clara Gong

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

lbendlin
Super User
Super User

You can use Field Parameters, or you can use the standard "Latest Value as Default" pattern

 

- create a string representation of your date column, replace the latest date with a string "Latest"
- sort that new column by the original date column
- add a slicer or visual/page/report level filter
- set the filter to "Latest"
- publish the pbix to the workspace/app

 

Make sure not to confuse your report users.  Keep it simple.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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