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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Combine two table data which has intersecting time period

Hello, I want to ask questions about combining two table data that was pulled from the SQL server.

Two tables have same features but it has different period of time.

I want to combine two tables that meets intersecting time period.

 

For example, first data looks like this.

1.png

And Second Data looks like this.

2.png

 

I want to create a third table 

3.png

It will be great to get a help how to do this in PowerBI.

 

Thank you!

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous ceate this caclulated table:

 

Table3 = 
	UNION(
		FILTER(
			Table1,
			Table1[Date] IN VALUES(Table2[Date])
		),
		FILTER(
			Table2,
			Table2[Date] IN VALUES(Table1[Date])
		)
	)

 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

4 REPLIES 4
SpartaBI
Community Champion
Community Champion

@Anonymous ceate this caclulated table:

 

Table3 = 
	UNION(
		FILTER(
			Table1,
			Table1[Date] IN VALUES(Table2[Date])
		),
		FILTER(
			Table2,
			Table2[Date] IN VALUES(Table1[Date])
		)
	)

 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Anonymous
Not applicable

It worked! Thank you very much!

@Anonymous my pleasure 🙂
Check out my showcase report - got some high level stuff there 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂

Anonymous
Not applicable

Oh these are interesting reports! I will check it out. Thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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