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 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 |
---|---|
27 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |