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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AmChen
New Member

How to connect two different years' data where date is not unique and without primary key

Hi Community,

 

I am working on 2 years data and looking to relate both of them in order to create visualiztion that can present these 2 years data's Duration include yearly, monthly, daily in one visualization through drill up and down function.

 

For example:

This is when both of the tables do not have relationship between each other, so 2022 data will not change at all.

Year visual:

AmChen_3-1720465234936.png

 

Month visual:

AmChen_2-1720465196784.png

Daily visual:

AmChen_4-1720465294938.png

 

Howerver, I am run into problem that even I create relationship between both tables through "Date" feature for a many to many relationship, the visualization still cannot make both of the yearly data present and valid in a same visual. The visual will look like this: the 2022 data totally disappear.

AmChen_5-1720465692223.png

 

 

Is there anyone had encountered similar situation before or have any idea?

Any suggections or directions will be really helpful, thanks!

 

 

My Data format shows in the below:

2022 data:

AmChen_1-1720464910163.png

 

2023 data:

AmChen_0-1720464868055.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

You need to add a calendar table to your model and link it to both tables.

https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables

Then you can use the calendar table to summarize and compare data from both tables.

View solution in original post

4 REPLIES 4
jdbuchanan71
Super User
Super User

You need to add a calendar table to your model and link it to both tables.

https://learn.microsoft.com/en-us/power-bi/guidance/model-date-tables

Then you can use the calendar table to summarize and compare data from both tables.

Hi jdbuchanan71,

 

Thank you for your advise, I will definitely give it a try!

foodd
Super User
Super User

Hello @AmChen , and thank you for sharing a question with the Community.  This reply is informational. Please follow the decorum of the Community Forum when asking a question.

Please share your work-in-progress Power BI Desktop file (with sensitive information removed) and any source files in Excel format that fully address your issue or question in a usable format (not as a screenshot). You can upload these files to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then provide the file's URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

 

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.  Proud to be a Super User!

Hi foodd,

 

Thank you for your advice. These documents are somehow tricky to edit to remove the confidential parts, so I've just uploaded a simple screenshot. But I will definitely improve my questions next time, once I figure out how to remove the confidential parts. Thanks again

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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