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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
PSRai
Helper III
Helper III

Creating a Day or Night Button

Hi

 

I have data that is hourly for 24 hours across a number of days. I would like to show the data across night hours 8pm - 6pm and day hours 7-7. Is there a button that I can create that will do this as part of a measure or a text box (not slicer or filter pane) that will allow me to add in the hours I require?

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hi @PSRai ,

I'm confused about your requirement. You want show the existing hours into a button or a text box? And how do you add in the hours? Can you please show some pics and then we will understand clearly? 

 

Best Regards,

Xue Ding

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

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

@v-xuding-msft 

 

Hi 

 

I have a hours column within my table. What I wantto be able to do is show my data throughout varios periods of the day and cross over into the next day if its night. My analysis should be that I can see performance throughout the night as well as day.

 

 

Box = Day followed by two box that is a start and end. This will allow the customer to select any time period. (not a slicer) 

 

 

@v-xuding-msft 

 

Hi 

 

I have a hours column within my table. What I wantto be able to do is show my data throughout varios periods of the day and cross over into the next day if its night. My analysis should be that I can see performance throughout the night as well as day.

 

 

Box = Day followed by two box that is a start and end. This will allow the customer to select any time period. (not a slicer) 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors