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

DistinctCount with selected Filters in Filters Pane

Hello,

 

I have a measure with distinctcount. When I select a part of a bar chart visual or select a filter in the righthand filters pane, the measure does not perform the distinctcount on the selected values. 

 

EventCount=Calculate(DistinctCount('tickettable'[ticketnumber]))+0

 

Any thoughts/ideas...thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Sharing in case others need help .. I just had to add the following to get it to work:

 

EventCount=Calculate(DistinctCount('tickettable'[ticketnumber]),ALLSELECTED('tickettable'))+0

 

Thank you!

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Sharing in case others need help .. I just had to add the following to get it to work:

 

EventCount=Calculate(DistinctCount('tickettable'[ticketnumber]),ALLSELECTED('tickettable'))+0

 

Thank you!

 

 

FreemanZ
Super User
Super User

hi @Anonymous 

how does the selected column related to the ticketnumber column?

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.