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.
Hi,
How can the below DAX use groupby instead of summarize please?
SUMMARIZE (
'TablePH',
'TableP'[Field1],
'TableP'[Field3],
"CountOfCountries", DISTINCTCOUNT ( 'Table6'[Country] ),
"Hours", [Time]
)
Solved! Go to Solution.
Hi @Anonymous
Please see the below.
Measure = ADDCOLUMNS( GROUPBY( 'TablePH', 'TableP'[Field1], 'TableP'[Field3], "CountOfCountries", COUNTX( CURRENTGROUP(), DISTINCT( 'Table6'[Country] ) ) ), "Hours", [Time] )
Hi @Anonymous
Please see the below.
Measure = ADDCOLUMNS( GROUPBY( 'TablePH', 'TableP'[Field1], 'TableP'[Field3], "CountOfCountries", COUNTX( CURRENTGROUP(), DISTINCT( 'Table6'[Country] ) ) ), "Hours", [Time] )
thank you
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |