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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
manoj_0911
Post Patron
Post Patron

How to create these table joins in powerbi

FROM
AG2_STATUS_SUBHOUR ag2
JOIN DATE_TIME sdt ON (sdt.DATE_TIME_KEY = ag2.DATE_TIME_KEY)
JOIN PERSONS p ON (p.USER_ID = ag2.USER_ID AND p.ORGANIZATION_ID = ag2.ORGANIZATION_ID)
LEFT OUTER JOIN TEAM_MEMBERS tm ON (tm.USER_ID = p.USER_ID)
LEFT OUTER JOIN TEAMS t ON (t.TEAM_KEY = tm.TEAM_KEY)
LEFT OUTER JOIN GROUP_MEMBERS gm ON (ag2.USER_ID = gm.USER_ID)
LEFT OUTER JOIN GROUPS g ON (gm.GROUP_ID = g.GROUP_ID)
LEFT OUTER JOIN DIVISIONS d ON (d.DIVISION_ID = p.DIVISION_ID)

I need to create an report , make sure all filters are working fine and do incremental refresh and publish and test , if everything is working fine.

 

https://drive.google.com/file/d/1S8zgfqwHnaYtVELKapqdV-9xVIaaSU1Y/view?usp=sharing

 

I'm not able to create the inner joins , and when i create the report with the default joins done by powerbi and publish using incremental refresh getting this error in powerbi service

 

manoj_0911_0-1738660527950.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@manoj_0911 ,  Create fact AG2_STATUS_SUBHOUR

and Dimension DATE_TIME,

Combine PERSONS, TEAM_MEMBERS, TEAMS, DIVISIONS to create a person team table in power query (Use merge query)

 

Combine GROUP_MEMBERS, GROUPS into Gtoup dimesion.

 

Now join them in in data model. Power BI always show full data from Fact table (Many side  table). so you will have left join.

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@manoj_0911 ,  Create fact AG2_STATUS_SUBHOUR

and Dimension DATE_TIME,

Combine PERSONS, TEAM_MEMBERS, TEAMS, DIVISIONS to create a person team table in power query (Use merge query)

 

Combine GROUP_MEMBERS, GROUPS into Gtoup dimesion.

 

Now join them in in data model. Power BI always show full data from Fact table (Many side  table). so you will have left join.

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you so much for your reply, I tried this approach but faced issues while joining the 3, So going to attempt to merge all tables to 1

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors