Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I am trying to convert a spotfire dashboard to Power BI. We have a input field in Spotfire which takes datetime as the filter value so users type the required date in the input field then there is a calculation happens based on the date entered by the user. I need to do the same thing in Power BI but here the slicer does not take single date as an input so how to solve this issue?
Please let me know your solution
@Ritaf1983 @amitchandak @rohit1991 @danextian @burakkaragoz @Akash_Varuna @FBergamaschi @Elena_Kalina @Ashish_Mathur @pankajnamekar25 @mark_endicott
Solved! Go to Solution.
Hi @vivek_babu
Power BI doesn't currently support single date selection unless you're using a dropdown or tile slicer. My usual workaround is to use a before option of the range slicer, a shape and a text box. The shape and textbox cover the min date of the slicer. They're then grouped and I ensure that maintain layer order is enabled for those three visuals
Hi @vivek_babu
To meet your goal allowing users to pick a single date easily (not from a scrollable range slicer), but through search or direct input you can use a slicer with dropdown
Try this below steps :
Reference : https://databear.com/power-bi-on-screen-date-picker-no-custom-visual/
https://www.youtube.com/watch?v=zhWtU0DynCk&t=585s
Hope this helps !!
Thank You..
Hmm, interesting. Is it possible for you to provide us with a sample scenario a PBIX file or a screenshot using some dummy data that you're facing the issue with? Also, have you used the TREATAS function in your scenario, like in Patrick's video? It seems that this function helps perform calculations for that specific date
hi @vivek_babu
Have you checked Patrick's Single date picker method to see if it works for you?
https://www.youtube.com/watch?v=zhWtU0DynCk&ab_channel=GuyinaCube
Hi @kushanNa
Thanks for the response. I tried this after and before approach but i need the selected date alone. Example if i pick 7/30/2025 and i use selectedvalue function then it needs to return the exact date. This is not happening with min or max approach.
Regards
Hmm, interesting. Is it possible for you to provide us with a sample scenario a PBIX file or a screenshot using some dummy data that you're facing the issue with? Also, have you used the TREATAS function in your scenario, like in Patrick's video? It seems that this function helps perform calculations for that specific date
Hi @kushanNa
I tried using patrick's approach. I used After style option in the slicer and then created measure like this,
DatePick =
Hi @vivek_babu
Power BI doesn't currently support single date selection unless you're using a dropdown or tile slicer. My usual workaround is to use a before option of the range slicer, a shape and a text box. The shape and textbox cover the min date of the slicer. They're then grouped and I ensure that maintain layer order is enabled for those three visuals
Hi @danextian
I tried using patrick's approach. I used After style option in the slicer and then created measure like this,
DatePick =
Hi @danextian
Thanks for the response. I tried this after and before approach but i need the selected date alone. Example if i pick 7/30/2025 and i use selectedvalue function then it needs to return the exact date. This is not happening with min or max approach.
Regards
Hi @FBergamaschi ,
Thanks for quick response.
Yes i have a date table and if i use this in slicer then it provides me the between range like start and end date which i dont need. I need single date selection by the user not the date range
Regards
The user will have to do a selection on those dates, or am I missing what you are trying to do. How does yhe user selects the date? Does this happen outside Power BI? Is this selected date available in a table?
Hi @FBergamaschi ,
It is a input field in spotfire like a what if parameter in power bi. Users will type the required date in that field and that date is fetched and used in the calculations.
Regards
Ok do if that selection is available in a table in power bi that is easy, otherwise I do not see solutions
I have dates in a table only problem is i need to put this field in a slicer and allow users to select single date instead of the date range. Then i can use selectedvalue function to capture the user selected date and use it in my calculations
Regards
Will not a "list of values" slicer with single section do?
It will work but users dont want to scroll and select dates manually instead they prefer either search option or directly input the dates
Regards
Hi @vivek_babu
To meet your goal allowing users to pick a single date easily (not from a scrollable range slicer), but through search or direct input you can use a slicer with dropdown
Try this below steps :
Reference : https://databear.com/power-bi-on-screen-date-picker-no-custom-visual/
https://www.youtube.com/watch?v=zhWtU0DynCk&t=585s
Hope this helps !!
Thank You..
Hi @v-aatheeque
I tried using patrick's approach. I used After style option in the slicer and then created measure like this,
DatePick =
Hi @v-aatheeque
Thanks for the response. I tried this after and before approach but i need the selected date alone. Example if i pick 7/30/2025 and i use selectedvalue function then it needs to return the exact date. This is not happening with min or max approach.
Regards
Power BI can only wirk on tables, so you must create a list of all the dates and create a slicer on that
You already have a calendar table?
User | Count |
---|---|
98 | |
78 | |
77 | |
49 | |
26 |