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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Digger
Post Patron
Post Patron

Sum distincts in calculated columns

I can count distinct rows with

 

 

COUNTROWS(
SUMMARIZE(
FILTER(
_payments
,[order_id] = thisOrderID
&& [type] in {"1","yy"}
)
,
[ID])
)
But how get Sum of distincts IDs? in calculated columns not in measures
 
 
6 REPLIES 6
Anonymous
Not applicable

Hi @Digger ,

 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

Anonymous
Not applicable

Hi @Digger ,

 

According to how get Sum of distincts IDs ,please try:

Column = SUMX(VALUES('Table'[ID]),[ID])

Eyelyn9_0-1634261437064.png

 

If it is not your expected output , please provide more detail information(data sample , expected ) to help us clarify your scenario.

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Digger , You need a group by for that

 

example

SumX(values(Table[COlumn]), calculate(distinctcount(Table[ID]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  distinctcount is crashing all report and never complete countings

@Digger , the performance alternate, suggested in some video by guyinacude channel 

 

countx(summarize(Table, Table[ID]),[ID])

 

 

Not able to find the video

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  yes, but i need sum not count

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors