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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Not able to join 2 tables using relationships. Values are getting aggregated from 2nd table

Hi Folks,

 

I am trying to join Actual hours per category and forecast hours per category from 2 different tables. However, I am unable to do so. I used all the permuations and combinations.

Actual Hours Table:

 

Service CategoryTerritory NameActual HousDate
ABCUS51-Dec-2021
ABCUS102-Dec-2021

 

Forecast Hours Table

 

Service CategoryTerritory NameForecast HousDate
ABCUS101-Dec-2021
ABCUS202-Dec-2021

 

Also in the forecast table there are future dates as well. I tried to build a realtionship using date, territory and service category. When I am trying to insert in one table, values from 2nd table is getting aggregated.

 

Results I am getting:

 

Service CategoryTerritory NameActual HousForecast HoursDate
ABCUS5301-Dec-2021
ABCUS10302-Dec-2021

 

Thanks in advance for the help.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,


You can also try to create a new column:

Column = LOOKUPVALUE(Table2[Forecast Hous],Table2[Date],Table1[Date],Table2[Service Category],Table1[Service Category],Table2[Territory Name],Table1[Territory Name])

Vlianlmsft_0-1645076506171.png

 

 

Best Regards,
Liang
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

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,


You can also try to create a new column:

Column = LOOKUPVALUE(Table2[Forecast Hous],Table2[Date],Table1[Date],Table2[Service Category],Table1[Service Category],Table2[Territory Name],Table1[Territory Name])

Vlianlmsft_0-1645076506171.png

 

 

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

amitchandak
Super User
Super User

@Anonymous , You need to join both these tables with common dimensions like

Service Category, Territory Name and Date

 

and analyze them with help from common dimension

Common table

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

 


To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos. star schema

https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.