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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Freigei5t
Frequent Visitor

Comparison of two datatables with identical structure, but different selection on one plot

Hi all,

i'm a bit stuck, and i'm pretty sure you can help to find the right direction.

 

Basically it is TWO tables with timeseries data.

Table1:

YearValue
20245
20257
202619


Table2:

20247
20255
202621
202713
202810
20295
203015
2031-5

 

The problem i'm facing is, that if i want to display both of these timeseries in ONE line-plot that the first table will truncate/cut my second tables' dataset as it is having no data from 2027 onwards. 
Depending on the selection, it can also be the other way around (table 1 lasting longer than table2).

 

I tried to have a helping table with years from 2024 to 2100, but by creating a relationship it again is cutting my helping table.

What would be the best or most elegant solution here?

Thanks for your advice!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Freigei5t ,

 

It is possible to create a unified dataset in power query that includes all the years in both tables. This can be accomplished by performing an outer join on both datasets based on the "Year" column.

This way, you will have a complete timeline that covers all the years in both tables. (The handling of missing values depends on your specific business scenario)

vkongfanfmsft_0-1709111054741.png

vkongfanfmsft_1-1709111062858.png

vkongfanfmsft_2-1709111078750.png

 

Best Regards,
Adamk Kong

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Freigei5t ,

 

It is possible to create a unified dataset in power query that includes all the years in both tables. This can be accomplished by performing an outer join on both datasets based on the "Year" column.

This way, you will have a complete timeline that covers all the years in both tables. (The handling of missing values depends on your specific business scenario)

vkongfanfmsft_0-1709111054741.png

vkongfanfmsft_1-1709111062858.png

vkongfanfmsft_2-1709111078750.png

 

Best Regards,
Adamk Kong

 

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

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.