The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have two tables.
Table 1
Part Id, created date, region
Table 2
Tender id, Tender date, region
Now the above two tables has many to many relationship and has no dependency between themselvs. I want to create a new table with data from this two tables into one with below clause tender date < Part created date < tender date + 7
Solved! Go to Solution.
@Anonymous , Try like
filter(crossjoin(Table1,table2),[tender date]<[Part created date] && [Part created date]<=[tender date]+7)
As both region has same name, you might have to use selectcolumns to rename
Or like
summarize(filter(table1,table1[Tender date]<=max(Table2[Part created date]) && max(Table2[Part created date])<=table1[tender date]+7)
,Table1[part_id], table2[tendar_id], table1[region])
@Anonymous , Try like
filter(crossjoin(Table1,table2),[tender date]<[Part created date] && [Part created date]<=[tender date]+7)
As both region has same name, you might have to use selectcolumns to rename
Or like
summarize(filter(table1,table1[Tender date]<=max(Table2[Part created date]) && max(Table2[Part created date])<=table1[tender date]+7)
,Table1[part_id], table2[tendar_id], table1[region])
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |