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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.