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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
MattBussard
New Member

Real time reporting based on current time

Hi all, I'm a new member who's learning power bi to use in a corporate environment for defect and KPI reporting.

 

I've searched around and have been unable to find a suitable answer to my issue.

I've created a real time dashboard that shows production information for the current shift such as downtime, rework charges, and defect types that have been reworked. I've trimmed it down to relevant data by using WHERE DEFECTDATE > TRUNC(SYSDATE)+7/24 so that it displays the current shift's information. Now comes the hard part (for me). I have to implement the night shift. We have 2 shifts which are 7am-7pm, and 7pm-7am. I need the information displayed on my report to display based on the current time, so if it is 2am it would display the information for the 7pm-7am shift and so on. Since this report refreshed automatically every minute, I'd like to manage this in the query itself so that only relevant data is being pulled from the oracle database I'm querying. Is there a way to do this on the SQL level? If not, I'm open to suggestions, of course I could add a custom column to identify the shift and use a splicer, but I'd prefer it to be automatic for the user. I'm open to any suggestions.

 

Thank you!

1 REPLY 1
amitchandak
Super User
Super User

@MattBussard , Based on what I got you have now in pwoer bi

 

You can measure, that you can use in visual or visual level filter

 

calculate(sum(Table[Value]) , filter(Table, Table[Created date] >= now() -1)) //-1 days

 

you can subtract time using time

now() - time(5,0,0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors