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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
swrlabhe
Helper I
Helper I

Selecting single date as calendar on slicer

Hey PBI Gurus,

I have requirement where I have to have Calendar displayed on report andwork as slicer so that If I select a date the data should reflect for on or before that date.

I know the Slider with date range is an option but there is no way to hide start date in that case

I also tried the custom visuals like timeline slicers and other calendar visuals but most of those asks for buying alicense.

 

Any idea how to hide Start Date in slider so that I camn make it work like single selecting Calendar or any other way to do same?

 

 

1 ACCEPTED SOLUTION

Usually date slicer with dropdown list plus a measure would work in your case, but it seems you prefer a slicer with Calendar UI. If in your situation, i'd simply set the Date Slicer to 'Before', disable the slider bar and then use a Shape (without border) to cover/hide Start date. 

MasonMA_0-1751763351809.png

MasonMA_1-1751763741765.png

 

View solution in original post

12 REPLIES 12
v-ssriganesh
Community Support
Community Support

Hello @swrlabhe,

Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @danextian, @Ashish_Mathur, @Daniel29195@MasonMA for sharing valuable insights.

 

Could you please confirm if your query has been resolved by the provided solution? If so, please mark it as the solution. This will help other community members solve similar problems faster.

Thank you.

danextian
Super User
Super User

Hi @swrlabhe 

You can literaly hide the start date by covering it with a shape/textbox and group it together with the date slicer. Ensure that maintain layer order is enabled for both the shape/textbox and the slicer

danextian_0-1751768947555.gif

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

This worked but now I need the selected date only to appear in the report column of As On Date

 

If your slicer is set to Before a date, Power BI interprets that as "include all dates less than or equal to the selected date", so you can use MAX('Date'[Date]) and it will always return that selected cutoff date.

Selected_As_On_Date = 
MAX('Date'[Date])

 

Ok got it,  I want same way to filter data like start date and end date but if I select Start Date as 01-Jul-2025 then it should give me data on or before for 01-Jul-2025 and same way of I select End Date then 07-Jul-2025, then it should take off selection from Start Date and then apply End Date selection i.e. on or before for 07-Jul-2025.

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached files.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Daniel29195
Super User
Super User

Hello @swrlabhe

I hope you are doing great today, 

 

i think this would help you 

Show last 6 months based on user single slicer selection.

 

this video will show you the implmenation needed to be able to if you select a date, let us say 2025-01-01,  the report will show you all the data before that selected date ( in the video will show you last 6 months but you can tweak the code to suit your need ) 

 

 

hope it helps  

Thanks for video but its specifically shows how to restrict date from slicer list, I want a single selection date from calendar as slicer and should woirk as on or before date

@swrlabhe 

Use a Shape visual that has the same color as your backgroud to cover the 'Start Date' part 😉

Not sure what do you mean , can you help with details 

Usually date slicer with dropdown list plus a measure would work in your case, but it seems you prefer a slicer with Calendar UI. If in your situation, i'd simply set the Date Slicer to 'Before', disable the slider bar and then use a Shape (without border) to cover/hide Start date. 

MasonMA_0-1751763351809.png

MasonMA_1-1751763741765.png

 

Ok got it,  I want same way to filter data like start date and end date but if I select Start Date as 01-Jul-2025 then it should give me data on or before for 01-Jul-2025 and same way of I select End Date then 07-Jul-2025, then it should take off selection from Start Date and then apply End Date selection i.e. on or before for 07-Jul-2025.

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.