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

View all the Fabric Data Days sessions on demand. View schedule

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
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