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
AgencyPowerBi
Helper III
Helper III

How to calculate spend in two different periods for the same client?

Hi, I have a problem that I don't know how to slove.

 

I have large table with companies, dates and traffic data.

I have smaller table with companies that are my clients and start-end dates when they have been my clients.

There is one-many relationship between these two tables that help me calculate traffic for specific companies in the period when they have been my clients.

 

PROBLEM: The same companie has become the client again.

If I enter row with new client period, I'll have many-many relationship in one-many.

How do I resolve this and avoid summarization problems?

 

Thanks!

1 ACCEPTED SOLUTION

@AgencyPowerBi,

 

The two existing tables remain as they are, and you add a third table Company to your data model. The Company table is a distinct list of companies. Example:

 

DataInsights_0-1630335785304.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
DataInsights
Super User
Super User

@AgencyPowerBi,

 

You could create a bridge table that has one row per Company. This bridge table would have a one-to-many relationship with the other two tables.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




If I understand correctly, duplicates go to another table? that has the same layout as initial clents table, and connects to other two tables?

@AgencyPowerBi,

 

The two existing tables remain as they are, and you add a third table Company to your data model. The Company table is a distinct list of companies. Example:

 

DataInsights_0-1630335785304.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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