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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Distintcount and sum

How can I use distinctcount but also be able to do summarization?  I am this DAX

FollowedUP = CALCULATE(DISTINCTCOUNT(CSRQTFollowup3[FollowUp]),FILTER(CSRQTFollowup3,CSRQTFollowup3[FollowUp] = 1 ))
 
 

FollowedUp

Capture.JPG

 
7 REPLIES 7
amitchandak
Super User
Super User

@Anonymous 

I am not sure of Group by/ Row , you have used , but something like this will work

FollowedUP =
sumx(Summarize(CSRQTFollowup3, CSRQTFollowup3[Queue],"_dist"
CALCULATE(DISTINCTCOUNT(CSRQTFollowup3[FollowUp]),FILTER(CSRQTFollowup3,CSRQTFollowup3[FollowUp] = 1 ))),[_dist])

 

Change this with appropriate column CSRQTFollowup3[Queue]

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
Anonymous
Not applicable

Capture1.JPG

 

 

@amitchandak   Still got the same results.  I created a separate measure named FollowedUp4 so I dont overide the original one.  See the 3rd column.  Does the queue column have to be an specific type?  I have it as whole number, sum uncategorized.  

@Anonymous , Can you share the formula use

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
Anonymous
Not applicable

Here is what you had sent me but I created FollowUp4 

FollowedUP4 =
sumx(Summarize(CSRQTFollowup3, CSRQTFollowup3[Queue],"_dist",
CALCULATE(DISTINCTCOUNT(CSRQTFollowup3[FollowUp]),FILTER(CSRQTFollowup3,CSRQTFollowup3[FollowUp] = 1 ))),[_dist])
 
and queue is a new column:
Capture2.JPG
 
 

 

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

OK, so that works, doesn't work, what are you going for?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

The second column won't sum,  the type is whole number.  I haven't run into this before.  See the column next to it how it adds up to 23,  this second column should add up to 8 but it still says 1 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.