Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
User | Count |
---|---|
84 | |
79 | |
71 | |
48 | |
42 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |