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
hkillen
Helper I
Helper I

'Time' Slicer

I need a slicer that, when an a Time value value is selected, outputs all records with a with a time stamp equal to or greater than the time value selected.  For example, if the 12:00 PM value is selected, not only records with 12:00 are output, but any records with a time stamp > 12:00 is output.  Any ideas?

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @hkillen ,

I have created a simple sample, please refer to it to see if it helps you.

Create a time table base on the table.

Table 2 = SUMMARIZE('Table','Table'[time])

Put the field into the slicer.

Then create a measure.

Measure = var _1=SELECTEDVALUE('Table 2'[time])
return
IF(MAX('Table'[time])>=_1,1,0)

Then filter the measure.

vpollymsft_0-1658979208567.png

vpollymsft_1-1658979218376.png

If I have misundrstood you meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @hkillen ,

I have created a simple sample, please refer to it to see if it helps you.

Create a time table base on the table.

Table 2 = SUMMARIZE('Table','Table'[time])

Put the field into the slicer.

Then create a measure.

Measure = var _1=SELECTEDVALUE('Table 2'[time])
return
IF(MAX('Table'[time])>=_1,1,0)

Then filter the measure.

vpollymsft_0-1658979208567.png

vpollymsft_1-1658979218376.png

If I have misundrstood you meaning, please provide more details with your desired output and pbix file without privacy information.

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

amitchandak
Super User
Super User

@hkillen , Create a time table, Do not join with your table

 

Make sure you have time column in you table

 

Time1 = timevalue([datetime])

 

then you can create a measure like

calculate(Sum(Table[Value]), Filter(Table, Table[Time1] >= selectedvalue(Time[Time]) ) )

 

Power Query- List.Times- Create Time Table: https://youtu.be/-pxMpTdnTVc

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.