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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abc_777
Super User
Super User

HI

Hi,

 

I have created the following datetime table

 

DateTime =
ADDCOLUMNS (
CROSSJOIN (
CALENDAR ( DATE ( 2014, 1, 1 ), DATE ( 2025, 12, 31 ) ),
UNION (
ROW ( "Time", TIME ( 1, 0, 0 ) ),
ROW ( "Time", TIME ( 2, 0, 0 ) ),
ROW ( "Time", TIME ( 3, 0, 0 ) ),
ROW ( "Time", TIME ( 4, 0, 0 ) ),
ROW ( "Time", TIME ( 5, 0, 0 ) ),
ROW ( "Time", TIME ( 6, 0, 0 ) ),
ROW ( "Time", TIME ( 7, 0, 0 ) ),
ROW ( "Time", TIME ( 9, 0, 0 ) ),
ROW ( "Time", TIME ( 10, 0, 0 ) ),
ROW ( "Time", TIME ( 11, 0, 0 ) ),
ROW ( "Time", TIME ( 12, 0, 0 ) ),
ROW ( "Time", TIME ( 13, 0, 0 ) ),
ROW ( "Time", TIME ( 14, 0, 0 ) ),
ROW ( "Time", TIME ( 15, 0, 0 ) ),
ROW ( "Time", TIME ( 16, 0, 0 ) ),
ROW ( "Time", TIME ( 17, 0, 0 ) ),
ROW ( "Time", TIME ( 18, 0, 0 ) ),
ROW ( "Time", TIME ( 19, 0, 0 ) ),
ROW ( "Time", TIME ( 20, 0, 0 ) ),
ROW ( "Time", TIME ( 21, 0, 0 ) ),
ROW ( "Time", TIME ( 22, 0, 0 ) ),
ROW ( "Time", TIME ( 23, 0, 0 ) ),
ROW ( "Time", TIME ( 24, 0, 0 ) )
)
),
"DateTime", [Date] + [Time],
"Hour", HOUR ( [Time] )
)
 
then joing this table with Sales table invoiceDT
 
abc_777_0-1649598387724.png

 

then in matrix visual i put invoiceDT into Rows and Quantity measure into values from sales table and 

Time column from above-created DateTime table

 

I got this result, same quantity repeating in each hour and so total is same

 

abc_777_5-1649598799422.png

 

 but the result should be like this. Quantity is changes per per same Hour over hour and so total is also changes

 

abc_777_3-1649598643012.png

 

it's not actually filtering Hour over an hour.

please help me to resolve the issue. 

 

thanks

 

2 ACCEPTED SOLUTIONS

my invoiceDT column got 12:00:00 hr with the date.

even I have separate column with TIME with data type also TIme and has time value in it. and i made relationship with it but no luck. so what i should to to resolve

 

thx

View solution in original post

please some one help me out. where the issue i am having to resolved this. or can do remote to my my machine and see the issue. 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@abc_777 , invoiceDT  should also be at the hour level

 

invoiceDTHout = datevalue([invoiceDT]) + time(hour([invoiceDT]), 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

my invoiceDT column got 12:00:00 hr with the date.

even I have separate column with TIME with data type also TIme and has time value in it. and i made relationship with it but no luck. so what i should to to resolve

 

thx

please some one help me out. where the issue i am having to resolved this. or can do remote to my my machine and see the issue. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors