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

Use Date & Time from two tables in VIsuals

Hello

 

I have a database of real-time sessions, including date and time. I also have market prices for every hour. I need to show them both in a visual. Imagine something like this:

iwonttell_0-1664875882438.jpeg

There exists a relationship between the two Date&Time columns in the Model tab. But that doesn't help. I'm thinking it is because the market price is for 1 full hour (one value), and in my database, I may have more than one session in an hour (1+ values). 

 

Can someone find a work-around for this?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@iwonttell , If you need information from two tables, you can create date and timetable

 

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

 

Or you can create an hourly bucket in your data

 

datevalues([Date & Time]) +  Time(hours([Date & Time]) ,0,0)

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@iwonttell , If you need information from two tables, you can create date and timetable

 

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

 

Or you can create an hourly bucket in your data

 

datevalues([Date & Time]) +  Time(hours([Date & Time]) ,0,0)

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.