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 September 15. Request your voucher.
I have these two tables - with no natural connection:
And I want to create this table for all the dates with DAX, please help!
Solved! Go to Solution.
Hi @Anonymous!
Try the following:
New Table =
VAR _Table1 =
VALUES( 'Table 1'[DateShort] )
VAR _Table2 =
SUMMARIZE(
'Table 2',
'Table 2'[Category],
'Table 2'[Category 2]
)
RETURN
CROSSJOIN( _Table1, _Table2 )
Let me know if that helps!
Hi @Anonymous!
Try the following:
New Table =
VAR _Table1 =
VALUES( 'Table 1'[DateShort] )
VAR _Table2 =
SUMMARIZE(
'Table 2',
'Table 2'[Category],
'Table 2'[Category 2]
)
RETURN
CROSSJOIN( _Table1, _Table2 )
Let me know if that helps!
Thank you so much! That was exactly what i needed 😊
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |