Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nikos_derv
Frequent Visitor

DISTINCTCOUNT INTO GROUPBY CALCULATED TABLE

Hi all,

 

I need to create an aggregated table. To do so, i tryed to use GROUPBY, and use nested X-functions like SUMX, COUNTX etc. However, i need to apply a distinct count too. Anyone knows how to do so?

 

Below you can see my table so far, and in comments the new column i would use if something like DISTICNTCOUNTX existed.

 

nikos_derv_0-1673613286651.png

 

Many thanks in advance!

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

You could get that with ADDCOLUMNS(SUMMARIZE( ... instead of using GROUPBY. Otherwise, You could probably do it with a nested GROUPBY expression where the inner one includes your player id field.

 

Pat

 

Microsoft Employee

View solution in original post

1 REPLY 1
ppm1
Solution Sage
Solution Sage

You could get that with ADDCOLUMNS(SUMMARIZE( ... instead of using GROUPBY. Otherwise, You could probably do it with a nested GROUPBY expression where the inner one includes your player id field.

 

Pat

 

Microsoft Employee

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.