March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello Team,
We have one Table.
This is the below columns,
Date-Time , value and Legends.
How to create different Start Time (Hours, Minutes ) and End Time (Hours, Minutes) Slicers .
Please find the below screenshot for reference
Solved! Go to Solution.
Thanks for the reply from Gabry , please allow me to provide another insight:
Hi, @Rayudu1
1.First, use the HOUR() function, the MINUTE() function, the SECOND() function, and the Right() function to create four calculated columns:
HOUR = HOUR('Table'[DateTime])
min = MINUTE('Table'[DateTime])
ss = SECOND('Table'[DateTime])
AP = RIGHT('Table'[DateTime],2)
2.Next, create two more calculation tables with these four columns, one for each as a slicer:
starttime = ALLEXCEPT('Table','Table'[DateTime],'Table'[Legends],'Table'[Value])
endtime = 'starttime'
3.Next, select the filter measure in the visualization:
VAR NOW1 =
TIME ( HOUR ( MAX ( 'Table'[DateTime] ) ), MINUTE ( MAX ( 'Table'[DateTime] ) ), SECOND ( MAX ( 'Table'[DateTime] ) ) )
VAR START1 =
TIME ( MAX ( 'starttime'[HOUR] ), MAX ( 'starttime'[min] ), MAX ( 'starttime'[ss] ) )
VAR END1 =
TIME ( MAX ( 'endtime'[HOUR] ), MAX ( 'endtime'[min] ), MAX ( 'endtime'[ss] ) )
RETURN
IF ( NOW1 >= START1 && NOW1 <= END1, 1, 0 )
5.Here's my final result, which I hope meets your requirements.
Of course, if you have any new ideas, you are welcome to contact us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please find sample data.
Oh I see, I don't know if you can do it with the standard powerbi slicer. Probably you need to use the filter pane. I don't know sorry
Please provide sample data
How to create Start Time and End Time Slicers for Line Chart.
Please find the sample data.
Please find the below screenshot for reference.
Thanks for the reply from Gabry , please allow me to provide another insight:
Hi, @Rayudu1
1.First, use the HOUR() function, the MINUTE() function, the SECOND() function, and the Right() function to create four calculated columns:
HOUR = HOUR('Table'[DateTime])
min = MINUTE('Table'[DateTime])
ss = SECOND('Table'[DateTime])
AP = RIGHT('Table'[DateTime],2)
2.Next, create two more calculation tables with these four columns, one for each as a slicer:
starttime = ALLEXCEPT('Table','Table'[DateTime],'Table'[Legends],'Table'[Value])
endtime = 'starttime'
3.Next, select the filter measure in the visualization:
VAR NOW1 =
TIME ( HOUR ( MAX ( 'Table'[DateTime] ) ), MINUTE ( MAX ( 'Table'[DateTime] ) ), SECOND ( MAX ( 'Table'[DateTime] ) ) )
VAR START1 =
TIME ( MAX ( 'starttime'[HOUR] ), MAX ( 'starttime'[min] ), MAX ( 'starttime'[ss] ) )
VAR END1 =
TIME ( MAX ( 'endtime'[HOUR] ), MAX ( 'endtime'[min] ), MAX ( 'endtime'[ss] ) )
RETURN
IF ( NOW1 >= START1 && NOW1 <= END1, 1, 0 )
5.Here's my final result, which I hope meets your requirements.
Of course, if you have any new ideas, you are welcome to contact us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |