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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User

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





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.