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

Line Chart - Two complementary date axis

Hello there,

 

I tried to solve this problem by myself but I'm quite a beginner on Power BI Desktop and my knowledge are limited so here I am.

 

I've got in my DB two columns with values I try to join together. In the first table, I've got production values and in the second one I've got production expectation values. Each table contains date reference for values. The production table contains dates from past to today and the expectation table contains dates from today to 20 years forward.

 

I want to have on the same line chart values from these two table with the date on x axis. It could help my users to comparate actual production to expectation. But now, I can't have those two fields 'date' on the same line. When I try to do this, each one is creating its own x axis.

 

Have you got some magic tricks in your hat to help me ? Smiley Happy

2 ACCEPTED SOLUTIONS


@GregoryMartin wrote:

The two table are completly seperated. No date table between them. I have only reading rights on the DB so I can't do any views or any structural change. Every I can do is via Power BI.


 

You can make one of these in Power BI using the CALENDARAUTO function, or by throwing one together in, say, Excel and importing it from there (plenty of options on how to do this from a quick Google). Once you've got that in place and relationships between it and your two tables, you should then be able to get your one single time axis

View solution in original post

@jthomson


I didn't see CALENDARAUTO() function. You kinda save my life. Thank you so much.

View solution in original post

4 REPLIES 4
jthomson
Solution Sage
Solution Sage

Are the tables connected by a date table?

The two table are completly seperated. No date table between them. I have only reading rights on the DB so I can't do any views or any structural change. Every I can do is via Power BI.


@GregoryMartin wrote:

The two table are completly seperated. No date table between them. I have only reading rights on the DB so I can't do any views or any structural change. Every I can do is via Power BI.


 

You can make one of these in Power BI using the CALENDARAUTO function, or by throwing one together in, say, Excel and importing it from there (plenty of options on how to do this from a quick Google). Once you've got that in place and relationships between it and your two tables, you should then be able to get your one single time axis

@jthomson


I didn't see CALENDARAUTO() function. You kinda save my life. Thank you so much.

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.

Top Solution Authors