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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
amit_maniyar
Helper I
Helper I

Hourly Table using DAX

Hi All, 

here is the scenario; I want to create an hourly table using generateseries function as shown in the picture.
I am not sure if I am making any mistake. but ,I am supposed to see the hourly series here which should not have hour portion "59:59". 

 

I have attached 2 images here one of them shows as "mm/dd/yyy 00:00:00" sorted ascending and another one shows  "mm/dd/yyy 59:59:59" - which I would not want & dont know how it is giving me values like this!!

I liked using dax instead of power query because I find DAX simpler.


I tried to read relative posts, but could not find the exact one. 


any help would be appreciated.   2.jpg

 

1.jpg

 

 

1 ACCEPTED SOLUTION

Think of the cardinality. A hourly table has 24 entries. A minute table has 1440 rows. A time table has 86400 rows.  This will quickly become unmanageable.

View solution in original post

4 REPLIES 4
amit_maniyar
Helper I
Helper I

Thanks @lbendlin . I made a use of power query as you mentioned about cardinality.

amit_maniyar
Helper I
Helper I

Generateseries(0,23) won't give me date right ? I want date and time (hourly breakdown) as well.

 Do you know any workaround to this?

Think of the cardinality. A hourly table has 24 entries. A minute table has 1440 rows. A time table has 86400 rows.  This will quickly become unmanageable.

lbendlin
Super User
Super User

Have you considered using GENERATESERIES(0,23)  ?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors