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

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.

Reply
jereaallikko
Helper III
Helper III

Line chart showing values from two different tables

Hi,

 

I am trying to create a simple line chart showing data from two different tables.

 

Both tables contains several parameters, such as date, ID, person etc. There are over 1000 records, so I will just try to demonstrate.

The end result should look like this:

Chartwith2lines.JPG

 

 

 

Ideally I would like to maintain the date hierarchy and change it between Y-Q-M-D, so that it applies to both lines.

Do I have to create some kind of DAX measure(s) and establish relationships between the tables to make it work properly?

Any tips?

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @jereaallikko 

 

You need to have a Calendar/date table and add connect your tables to that date table. use date table dates as axis data and the value of your table as the value of the line chart.

if you want to create a date table see this link:

https://www.vahiddm.com/post/creating-calendar-table-with-3-steps

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

 

Appreciate your Kudos!!

 

View solution in original post

4 REPLIES 4
jereaallikko
Helper III
Helper III

Hi @VahidDM @PaulDBrown @amitchandak,

 

Thanks for your replies, all of them were helpful. I got the problem solved by creating the date table with instructions by @VahidDM. Then I connected the date columns from both tables to date table. Needed to make sure that each column was the type of "date" and not f.ex "date/time".

 

Thanks everyone.

 

BR,

Jere

VahidDM
Super User
Super User

Hi @jereaallikko 

 

You need to have a Calendar/date table and add connect your tables to that date table. use date table dates as axis data and the value of your table as the value of the line chart.

if you want to create a date table see this link:

https://www.vahiddm.com/post/creating-calendar-table-with-3-steps

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

 

Appreciate your Kudos!!

 

PaulDBrown
Community Champion
Community Champion

You need to create dimension tables with unique values covering the range of values for each field common to both tables, including a Date Table. You then create one-to-many relationships (single direction) from the dimension tables to the corresponing fields in the fact tables, and use these dimension table fields in visuals, filters, slicers and measures. In your example, you use fields from the Date Table as the x-axis and measures for the calculations for the values





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@jereaallikko , You should create a date table and join it with date.

 

And there you can have a column

Custom = format([date], "YYYY \QQ MMM DD" )

 

Sort this on the date column 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.