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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
genashpuryk
Helper I
Helper I

No link between dates

Hello colleagues! I have met a small silly problem, which prevents me from finalising my project. It is about dates and line charts.
I have a line chart with 2 sets of values on Y axis: cost (from one table) and shipment (from another table). X axis is date hierarchy -month, specifically. The problem is, if X axis data (date) comes from shipment table - shipment data is listed correctly, cost is just a line: 

genashpuryk_0-1713426391252.png

if X is taken from cost table, then shipments are just a line: 

genashpuryk_1-1713426467092.png

I checked various combinations of datefields used, but nothing works quite as I need. Date is formatted the same in both tables, so it's not really a reason.

I would be very grateful if you could give me any hints on solving this problem. 

2 ACCEPTED SOLUTIONS
ChiragGarg2512
Solution Sage
Solution Sage

1) Check the joins between the tables.

2) The X-axis data in one is date-wise while the other is month-wise[Year is not discrete].

3) Try creating a separate date table, join both the tables' date columns to the date table, and use that for the x-axis.

View solution in original post

Anonymous
Not applicable

Hi @genashpuryk 

 

@ChiragGarg2512 Thank you very much for your prompt reply. Creating a separate date sheet is very much the right thing to do.

 

Here I have provided another idea, again related to creating a table relationship.

 

If you are not considering creating a separate date table, then try creating a relationship based on the date columns of both tables.

 

Here's some dummy data

 

“nature”

vnuocmsft_0-1713769716064.png

 

“shipment”

vnuocmsft_1-1713769752241.png

 

Create table relationships by dragging and dropping in the model view.

vnuocmsft_2-1713769787501.png

 

Here is the result.

 

vnuocmsft_3-1713769926480.png

 

Regards,

Nono Chen

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

 

 

 

 

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @genashpuryk 

 

@ChiragGarg2512 Thank you very much for your prompt reply. Creating a separate date sheet is very much the right thing to do.

 

Here I have provided another idea, again related to creating a table relationship.

 

If you are not considering creating a separate date table, then try creating a relationship based on the date columns of both tables.

 

Here's some dummy data

 

“nature”

vnuocmsft_0-1713769716064.png

 

“shipment”

vnuocmsft_1-1713769752241.png

 

Create table relationships by dragging and dropping in the model view.

vnuocmsft_2-1713769787501.png

 

Here is the result.

 

vnuocmsft_3-1713769926480.png

 

Regards,

Nono Chen

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

 

 

 

 

 

 

 

ChiragGarg2512
Solution Sage
Solution Sage

1) Check the joins between the tables.

2) The X-axis data in one is date-wise while the other is month-wise[Year is not discrete].

3) Try creating a separate date table, join both the tables' date columns to the date table, and use that for the x-axis.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors