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!View all the Fabric Data Days sessions on demand. View schedule
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!
Solved! Go to Solution.
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!
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!
hi @Anonymous
how does the selected column related to the ticketnumber column?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 27 | |
| 21 | |
| 13 | |
| 12 |