The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a table with a list of products and another that I generate the months and years, and I need to create a table where the products are for each month and year, as shown. How could I do it using DAX?
Product |
A |
B |
C |
Year | Month |
2022 | 1 |
2022 | 2 |
2022 | 3 |
... | ... |
2023 | 12 |
Result
Year | Month | Product |
2022 | 1 | A |
2022 | 1 | B |
2022 | 1 | C |
2022 | 2 | A |
2022 | 2 | B |
... | ... | ... |
Solved! Go to Solution.
Hi @nicolasvc ,
Using DAX you can use the CROSSJOIN sintax:
Table 2 = CROSSJOIN('Table1', 'Table2')
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @nicolasvc ,
Using DAX you can use the CROSSJOIN sintax:
Table 2 = CROSSJOIN('Table1', 'Table2')
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIn Power Query, add a custom column to the second table (using the interface). In the dialog box put the name of the first table.
In the next step, expand the table (from the column header).
That should do it
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
78 | |
66 | |
52 | |
51 |
User | Count |
---|---|
121 | |
116 | |
77 | |
64 | |
63 |