Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
Super new Power BI user. Thanks for the help and apologies for the new guy questions.
I am looking to create a Date-Time table by hour (automatically updates based on new data added to the fact table is a bonus).
I have been looking around but I can't find a nice solution for this. The closest thing I have so far (which is NOT hourly) is the following:
Dates =
VAR BaseCalendar =
CALENDARAUTO()
RETURN
GENERATE (
BaseCalendar,
VAR BaseDate = [Date]
VAR YearDate = YEAR ( BaseDate )
VAR MonthNumber = MONTH ( BaseDate )
RETRUN ROW (
"Day", BaseDate,
"Year", YearDate,
"Month Number", MonthNumber,
"Month", FORMAT ( BaseDate, "mmm" ),
"Year Month", FORMAT ( BaseDate, "mmm yy" )
)
)If any light can be shed on the following as well, that would be really appreciated:
Thank you all very, very much!
Solved! Go to Solution.
Here is a link to a previous discusson on creating the Date Time Table.
Don't really have the time to answer all your questions right now but the short verison is the time Intelligence features of DAX are amazing and it handles most of the filter contriants and aggregation for you.
Vehicle Volume on Mondays for the 10 Oclock Hour = CALCULATE(SUM(Counts),date[day]="Monday"&&Date[hour]=10)
Just Drop this measure in a chart and add Months or any other field form your date table on the axis and BOOM!!
Good Luck.
Here is a link to a previous discusson on creating the Date Time Table.
Don't really have the time to answer all your questions right now but the short verison is the time Intelligence features of DAX are amazing and it handles most of the filter contriants and aggregation for you.
Vehicle Volume on Mondays for the 10 Oclock Hour = CALCULATE(SUM(Counts),date[day]="Monday"&&Date[hour]=10)
Just Drop this measure in a chart and add Months or any other field form your date table on the axis and BOOM!!
Good Luck.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |