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
lakshmanvepuri
Regular Visitor

Custom Calendar to fetch data 3 days ( hourly )/ Last 30 days ( 7 AM-7 AM ) / monthly ( Daily 7 AM )

Hi Gurus,

 

I am new to Power BI and exploring for the below Solution.

Please advise me how do I get the below way.

 

Dashboard should have three buttons.

HOURLY

DAILY

MONTHLY

 

https://docs.google.com/spreadsheets/d/1KAxPECarw1UbSvyjHVPZpYJkjZfxp7bX/edit?usp=share_link&ouid=10... 

lakshmanvepuri_0-1667205915725.png

Data is Enclosed.

 

Thanks

Lakshman

1 REPLY 1
amitchandak
Super User
Super User

@lakshmanvepuri , You can do based on now or selected date and time

 

last 3 hours =
var _min = now() -time(3,0,0)
var _max = now()
return
CALCULATE([Net], FILTER('Table','Table'[Datetime] >=_min && 'Table'[Datetime] <= _max))

 

 

last 3 hours =
var _min = today() -30 + time(7,0,0)
var _max = today() + time(7,0,0)
return
CALCULATE([Net], FILTER('Table','Table'[Datetime] >_min && 'Table'[Datetime] <= _max))

 

same way you build for others

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.

Top Solution Authors