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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Helper I
Helper I

Many to many relationship issue with dates


I have a powerbi model that has a date table in it.  The date table is standard e.g. year, month, day, financial year, financial month number etc. I want to connect this into a transaction table that summarises income by month and year. As it has the year and month in it, I thought I could link the two tables by these fields but it's created a many to many relationship, and it's not giving me the correct result. I want to link the two so I can get the financial year and financial month from the date table. It seems so much more difficult than it should be

Solution Sage
Solution Sage

I think the best way to do this is create a date column in your transaction table based off the year and month columns. So just create a calculated column that adds a day of 1 to each month and year combo. Something like:

Date = DATE( 'Transaction'[Year] , 'Transaction'[Month] , 1 )

Then just join that up to your date dimension. 

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors