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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ebrabender
New Member

24hr Date Selection From 6am to 6am

Hi I am extremely new and green to PowerBI.   What I am doing now is building a downtime chart from a manufacturing environment.   What I would like to do though is gather data from 6am until 6am the next day.  IE the data needs to be from 4/12/19 at 6am until 4/13/19 6am and then ignore all data after the 6am time frame on the 13th.  Can someone explain on/where I would do this?

 

Thank You

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @ebrabender ,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a new table:

Date = VALUES(Table1[Date])
And a new measure:
Measure = var a=SELECTEDVALUE('Date'[Date])
return IF(CALCULATE(MAX('Table1'[Date]))>=a&&CALCULATE(MAX('Table1'[Date])<=a+1),CALCULATE(MAX('Table1'[Value])),BLANK())
Use the 'Date'[Date] as slicer:
2.PNG
You could also download the pbix file to have a view.
 
Regards,
Daniel He
Community Support Team _ Daniel He
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

1 REPLY 1
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @ebrabender ,

Based on my test, you could refer to below steps:

Sample data:

1.PNG

Create a new table:

Date = VALUES(Table1[Date])
And a new measure:
Measure = var a=SELECTEDVALUE('Date'[Date])
return IF(CALCULATE(MAX('Table1'[Date]))>=a&&CALCULATE(MAX('Table1'[Date])<=a+1),CALCULATE(MAX('Table1'[Value])),BLANK())
Use the 'Date'[Date] as slicer:
2.PNG
You could also download the pbix file to have a view.
 
Regards,
Daniel He
Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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