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
sspears_tls
Frequent Visitor

Line and Stacked Column Chart - Data from two tables, with two dates on x-axis

I have two tables, Visits and EmailsSent. Each of these tables has a Date field, for visits it is the date of the visit, and for emails it is the date that the email was sent. I want to be able to show a count of visits as bars and a count of emails as a line, with the date being on the x-axis, but I'm not sure how to do that since there are two different date fields?

1 ACCEPTED SOLUTION
alanhodgson
Solution Supplier
Solution Supplier

Hey @sspears_tls,

 

You will want to make a Date/Calendar table and create a relationship between the 2 tables and the Date table.

 

Check out: link

 

CALENDAR and CALENDARAUTO:

https://msdn.microsoft.com/en-us/library/dn802546.aspx

 

Hope this helps,

 

Alan

View solution in original post

3 REPLIES 3
alanhodgson
Solution Supplier
Solution Supplier

Hey @sspears_tls,

 

You will want to make a Date/Calendar table and create a relationship between the 2 tables and the Date table.

 

Check out: link

 

CALENDAR and CALENDARAUTO:

https://msdn.microsoft.com/en-us/library/dn802546.aspx

 

Hope this helps,

 

Alan

Thanks @alanhodgson, that's what I was afraid of. It seems like if I do this, I will need to populate the new Date table each time I want to include more data (future dates) is that right?

@sspears_tls,

 

You can make the Date table as big as you want.

 

Date = CALENDAR("2000/01/01","2020/12/31")

 

 

Results:

BI3.PNG

 

Best,

 

Alan

Helpful resources

Announcements
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.

Top Kudoed Authors