Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |