Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables, Dates and Contracts:
Date |
01/01/2020 |
01/02/2020 |
01/03/2020 |
Contracts |
CT1 |
CT2 |
CT3 |
How can I join them like this?
Date | Contracts |
01/01/2020 | CT1 |
01/01/2020 | CT2 |
01/01/2020 | CT3 |
01/02/2020 | CT1 |
01/02/2020 | CT2 |
01/02/2020 | CT3 |
01/03/2020 | CT1 |
01/03/2020 | CT2 |
01/03/2020 | CT3 |
Solved! Go to Solution.
@BlackBird
Try Cross Join function
CROSSJOIN(
VALUES(TABLE1[DATE]_,
VALUES(TABLE2[CONTRACTS)
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have a Dates and Contracts table as shown, in the Dates table, simply add a custom column in Power Query, then type =Contracts as your formula. It will initially look like this:
You an see the formula above just references the Contracts table. (if your table has a space in it, it would be ...each #"New Contracts")
Then just expand the Contracts column.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi, @BlackBird
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a calculated table as below.
Table =
GENERATE(
'Date',
'Contracts'
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @BlackBird
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a calculated table as below.
Table =
GENERATE(
'Date',
'Contracts'
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have a Dates and Contracts table as shown, in the Dates table, simply add a custom column in Power Query, then type =Contracts as your formula. It will initially look like this:
You an see the formula above just references the Contracts table. (if your table has a space in it, it would be ...each #"New Contracts")
Then just expand the Contracts column.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting@BlackBird
Try Cross Join function
CROSSJOIN(
VALUES(TABLE1[DATE]_,
VALUES(TABLE2[CONTRACTS)
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.