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
surajshashidhar
Frequent Visitor

Load separate date columns in start and end date picker slicer based on another drop down slicer

Hello All,

 

Basically i have data tables which are 
1. date_dim ===> (Date, WeekStartDate, WeekEndDate, MonthStartDate, MonthEndDate, ...) ===> single select dropdown slicer
2. Granularity ===> ('daily', 'weekly', 'monthly', ...) ===> Date Picker with "between" filter

Problem: Currently the Date Range slicer and picker gets activated for all dates in date_dim as we are using date_dim[Date] for filtering. But we need to change the start and end dates loaded into calendar date picket based on selected drop down from Granularity.


For example: If user selects 'monthly' , then we need to Make only month start date selectable from calendar date picker for start date and month end date for end date. similarly for week granularity as well.

We tried creating two measures that switches between daily date, weekly and monthly date based on granularity but it does not seem to change the dates loaded onto calendar date picker.

Are there any ways of solving this problem? Is this possible in power bi to load only specific dates into calendar date picker?


surajshashidhar_0-1739529302382.png

 

surajshashidhar_1-1739529332492.png

surajshashidhar_3-1739529651371.png

 

 



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @surajshashidhar 

This feature isn't currently available in Power BI, but if you want to show the beginning and end of the month directly, you can use the drop-down list setting. I create sample tables:

vyohuamsft_0-1739770029533.png

vyohuamsft_1-1739770059502.png

Then create a new measure:

IsSelectableDate = 
VAR Logic = SWITCH(
    SELECTEDVALUE(Granularity[Granularity]),
    "daily", TRUE(),
    "weekly", SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[WeekStartDate]) || SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[WeekEndDate]),
    "monthly", SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[MonthStartDate]) || SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[MonthEndDate]),
    FALSE()
)
RETURN
IF(Logic = FALSE(), BLANK(), "True")

 

Create a Granularity slicer, then a date slicer, and put the created measure into the filter, setting the filter to True. This way, when the Granularity slicer is clicked, the date slicer will show the beginning of the month and the end of the month, or Monday and weekend.

vyohuamsft_2-1739770401895.png

vyohuamsft_3-1739770426418.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

2 REPLIES 2
Anonymous
Not applicable

Hi, @surajshashidhar 

This feature isn't currently available in Power BI, but if you want to show the beginning and end of the month directly, you can use the drop-down list setting. I create sample tables:

vyohuamsft_0-1739770029533.png

vyohuamsft_1-1739770059502.png

Then create a new measure:

IsSelectableDate = 
VAR Logic = SWITCH(
    SELECTEDVALUE(Granularity[Granularity]),
    "daily", TRUE(),
    "weekly", SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[WeekStartDate]) || SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[WeekEndDate]),
    "monthly", SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[MonthStartDate]) || SELECTEDVALUE('Date'[Date]) = SELECTEDVALUE('Date'[MonthEndDate]),
    FALSE()
)
RETURN
IF(Logic = FALSE(), BLANK(), "True")

 

Create a Granularity slicer, then a date slicer, and put the created measure into the filter, setting the filter to True. This way, when the Granularity slicer is clicked, the date slicer will show the beginning of the month and the end of the month, or Monday and weekend.

vyohuamsft_2-1739770401895.png

vyohuamsft_3-1739770426418.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Rupak_bi
Super User
Super User

Hi @surajshashidhar ,

As far as I know, this feature is not there in PBI. even if there are only two dates in a table, the date picker will work for all the dates in between the two dates. its a standard visual. The dropdown will work for the specific dates.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

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.

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.

Top Solution Authors