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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MrToast20
Frequent Visitor

Calculated Table - Many To Many issue

Hi there,

 

I have tables in powerbi as follows

 

Premiums Table

 

AmountReport DateCategory
1200.0031/07/2021HAULAGE
500.0030/06/2021TAXI
2356.0031/07/2021VAN

 

Claims Table

 

Amount PaidAmount OSReport DateCategory
0031/07/2021TAXI
1001000

31/07/2021

HAULAGE
50000

30/06/2021

HAULAGE

 

Category Table

TAXI
VAN
HAULAGE
 

 

The claims and Premium table have a 1 to many relations with the Category table

 

I have created a new table to obtain unique dates using the follwing DAX

Report_Dates = CALCULATETABLE ( DISTINCT ( Premium[Report_Date]))
 
When I try to create a relaship between Report_Dates and Premiums and/or claims tables I get a many to many warning. 
 
The report dates table now contains unique values so I am not expecting a many to many error.  
 
Any ideas what I am missing here?

 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

You should create a calendar table with unique consecutive date values covering the range of dates in your model and join in a 1-many relationship with the premium and claims table. You the use the calendar table in your measures, filters, slicers etc...





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @MrToast20,

AFAIK, current power bi data model allows to active one major relationships of these relationships will cause a conflict of power bi analysis/aggregations between these records.

Relationships in analysis services tabular models  

In addition, I'd like to suggest you take a look at the following link about star schema relationship designs if helps:

Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
Regards,

Xiaoxin Sheng

PaulDBrown
Community Champion
Community Champion

You should create a calendar table with unique consecutive date values covering the range of dates in your model and join in a 1-many relationship with the premium and claims table. You the use the calendar table in your measures, filters, slicers etc...





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






selimovd
Super User
Super User

Hey @MrToast20 ,

 

how does the table look? Are there multiple values?

Why don't you just create a dimensional date table with the CALENDAR function?

Check here how to do that:

https://softcrylic.com/blogs/power-bi-for-beginners-how-to-create-a-date-table-in-power-bi/

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors