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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
TonicQuake
Regular Visitor

Level of Detail Expression

Hi All, 

 

I'm trying to get to the total number of distinct advisers in a team when looking, when an indiviudal is selected. 

 

This is what I have tried: 

 

TonicQuake_0-1639574232355.png

 

In the TeamMember Count field, I'm expecting it to display 9 as there are only 9 members in the Life team that have a Total > 0


Thanks


Rob. 

 

 

1 ACCEPTED SOLUTION

I've manged to figure it out, by getting it to calculate the first part then, Calculate the All and AllExcept, Calculation below:

 

TotalAdviser Count =
CALCULATE(
CALCULATE(
DISTINCTCOUNT(Adviser[AdviserName])
,FILTER(Outcome,[Total Leads] > 0)
)
,ALL(Adviser)
,ALLEXCEPT(AdviserFloor,AdviserFloor[AdviserFloorName])
)
 
Thanks All.

 

View solution in original post

3 REPLIES 3
TonicQuake
Regular Visitor

@amitchandak Thank you for your response. 

I have attached  sample pbix file, with very basic made up data, but the same style of how the my acutal tables are linked. 

 

In the example file attached, I would expect the TotalAdviser Count to equal 4 as only 4 out of the 10 advisers have quoted in that Team. 

 

pbix file uploaded to file.io

https://file.io/sWAwmrfxLpsT

 

TonicQuake_0-1639576292573.png

 

Thanks

amitchandak
Super User
Super User

@TonicQuake ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

I've manged to figure it out, by getting it to calculate the first part then, Calculate the All and AllExcept, Calculation below:

 

TotalAdviser Count =
CALCULATE(
CALCULATE(
DISTINCTCOUNT(Adviser[AdviserName])
,FILTER(Outcome,[Total Leads] > 0)
)
,ALL(Adviser)
,ALLEXCEPT(AdviserFloor,AdviserFloor[AdviserFloorName])
)
 
Thanks All.

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.