The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
32 | |
13 | |
10 | |
10 | |
9 |