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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CSayaxang
Frequent Visitor

Distinct Count with All Except and Drill Down issues

Hello Friends,

Hoping someone can help me with my issue.

I have 2 visuals on my page:

SampleSample

 

My measure [Count tickets] is:

= CALCULATE(DISTINCTCOUNT(Tickets[Ticket#]),ALLEXCEPT(Tickets,Tickets[Cust Name]))

 

My first issue: The 2nd visual does not properly display my details. Example, "NY" is associated with the EAST Region but the table displays a record for ALL 4 Regions. Not sure why?

My 2nd issue: When I Drill Down using my first visual, the details does not display as expected. Example: If I click on the number "3" that represents number of Tickets from 2018 in the West region, I would expect to only see 3 records in the 2nd visual.

 

Any help would be great.

 

thanks

CS

5 REPLIES 5
az38
Community Champion
Community Champion

Hi @CSayaxang 

for the first issue replace fields State in visual: place in [state] from Region table

 

about second its difficult to say without look at source data and relationahip between tables.


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

I replaced the State field but still having issues. You don't think it has anything to do with my Measure? When I remove the [Count Tickets] measure, my second visual displays properly and the drill down works as expected.

 

Here's a screenshot showing the data in each table and the Relationship:

Data Relationship.jpg

az38
Community Champion
Community Champion

@CSayaxang 

do you use visual settings like here?

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

I figured it out. It was my Measure. I needed to add GROUPBY at the end in order for visual 2 to display properly. Now, it displays correctly when I drill down. Thanks for talking through this with me!

Anonymous
Not applicable

Can you show the final dax formula that worked for you? How did you modify your original formula viz.,

`= CALCULATE(DISTINCTCOUNT(Tickets[Ticket#]),ALLEXCEPT(Tickets,Tickets[Cust Name]))`

 

to include a `GROUPBY`?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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