cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dbhogaraju
Regular Visitor

Filter data on table using Slicers for a date, hour and min for both start and end

I have a Calendar table with date in my report. My requirement is to create slicers for a date, hour and min for both start and end.

Currently, I am able to filter the table data by start and end date.

But I am not able to filter "table" data by start and end hour or min(eg:1/5/2021 5:05 AM to 2/20/2021 2:46 PM).

Nothing is working. Can anyone help me with this issue by providing a sample pbix .

 

dbhogaraju_0-1620476720379.png

 

2 REPLIES 2
dbhogaraju
Regular Visitor

Hi @vanessafvg ,

Please find the details below .

 

Calendar Table : 

Calendar =
var _calendarQA = CALENDAR(MIN('Transaction'[Date]), max('Transaction'[Date]))
return
_calendar
 
Time table with hour and Minute :
Time =
VAR _series =
GENERATESERIES ( 1, 1440, 1 )
VAR _time =
ADDCOLUMNS ( _series, "TimeandDay", TIME ( 0, [Value], 0 ) )
RETURN
ADDCOLUMNS (
_time,
"TimeKey", FORMAT([TimeandDay], "hhmm"),
"Actual Time", FORMAT ( [TimeandDay], "HH:MM AM/PM" ),
"Hour", HOUR ( [TimeandDay] ),
"Hour Extended", FORMAT([TimeandDay], "H AM/PM"),
"Minute", MINUTE ( [TimeandDay] ),
"AMPM", FORMAT ( [TimeandDay], "AMPM" )
)
 
Below is sample transaction table data just for reference on which I am trying to use the date time slicers .
 
 
dbhogaraju_0-1620479488442.png

 

vanessafvg
Super User I
Super User I

what is your model structure?  and can you show what your calendar table looks like?   and how its related to your transactions





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

Proud to be a Super User!




Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors