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

Be 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

Reply
onevagi
Regular Visitor

Time Frame

Hi,

 

I have column which includes timeframe of 30 minutes for a day (Example: 00:00:00, 00:30:00, 01:00:00, 01:30:00.... till 23:30:00). I have created a Line and clustered column chart, the timeframe is in the X-Axis and I need the timeframe only from 08:00 to 20:00, So basically I need timeslice of the timeframe which I have. Any solution would be of great help. Thanks.

 

Kind Regards,

Omkar

1 ACCEPTED SOLUTION
Alican_C
Resolver II
Resolver II

You can use the following steps:

  1. Create a new calculated column to mark the rows that fall within the desired timeframe.

  2. Filter the visual by the use of new column

 

1. Creating the calculated column:


IsWithinTimeframe = IF(HOUR([TimeColumn]) >= 8 && HOUR([TimeColumn]) < 20,1,0)

 

2. Filtering the data:

 

  • Go to the "Filters" pane.
  • Drag the new IsWithinTimeframe column to the "Filters on this visual" area.
  • Set the filter to only include rows where IsWithinTimeframe is 1.

 

 

View solution in original post

2 REPLIES 2
Alican_C
Resolver II
Resolver II

You can use the following steps:

  1. Create a new calculated column to mark the rows that fall within the desired timeframe.

  2. Filter the visual by the use of new column

 

1. Creating the calculated column:


IsWithinTimeframe = IF(HOUR([TimeColumn]) >= 8 && HOUR([TimeColumn]) < 20,1,0)

 

2. Filtering the data:

 

  • Go to the "Filters" pane.
  • Drag the new IsWithinTimeframe column to the "Filters on this visual" area.
  • Set the filter to only include rows where IsWithinTimeframe is 1.

 

 

Hi,

 

Thank you so much for the help. It worked. Cheers 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.