Hey there!
You can create a new table in Power BI with only the specific dates you need (such as the four dates you want to compare). Then, use this table for your slicer.
1. Create a custom date table with only the dates you want to use. For example, if you have four dates (e.g., 25/12/2021, 25/12/2022, 25/12/2023, 25/12/2024), you can create a table like this:
RelevantDates =
DATATABLE(
"ValuationDate", DATATYPE DATE,
{
{DATE(2021,12,25)},
{DATE(2022,12,25)},
{DATE(2023,12,25)},
{DATE(2024,12,25)}
}
)
- Then, add this table to your slicer and use it to filter the relevant dates.
2. Instead of using a continuous date slicer, you can use a Dropdown slicer (or "List slicer") that only displays the four specific dates you're interested in. This way, the user can select from only the four dates rather than every day.
3. If you need the slicer to work dynamically with dates relative to today, you can use the Relative Date Slicer. However, this is generally for selecting relative time periods (e.g., last 30 days) and may not be applicable for your specific case.
Hope this helps!
😁😁