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
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
Employee
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
Employee
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
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.