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

Count of Customers by type updating with slicer

Hey All,

I believe I have searched everywhere and tried everything that I have found, I have gotten close, but cant quite make this work. I have customer broken out by Business Unit (BU) and each Business Unit has a type.  What I need is to then have a distinct count of customers under each type unique per BU.   

 

Here is a sample of my data,                     
CustomerIDBUType
1a

Cloud

1b

Prem

1cPrem
2a

Cloud

2cCloud
3bPrem
3cPrem

output:                           

CustomerIDCountBU
Cloud1
Prem
Hybrid

 

At this point it would be easy to create, the tough part arrises when I have a slicer on BU so that if the BU slicer is populated (can be multi select) the values should update appropriately. 

 

Here is a sample of my data,                                            CustomerID BU type
1a

Cloud

1b

Prem

1cPrem
2a

Cloud

2cCloud
3bPrem
3cPrem

Example   BU Slicer is set to "A"

 

 Type CustomerCount 
Cloud2
Prem
Hybrid

 

I dont need to see the 0s just

showing

 

 

I do know it needs to be a measure so that it will update with the slicer. 

 

 

 

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

To calculate the distinct count of customers under each type which is dynamically changed based on slicer selection, you can use this measure:

Measure = DISTINCTCOUNT(data[CustomerID])

 

But I have some concerns:

Why are the result values 1 in below screenshot?

1.PNG

 

What does the highlighted message mean?

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yulgu-msft  Thank you for the response, and apologies as I dont completely know what I need to do, it is tough to explain the question.  But the Calculation is a bit more then just the distinctcount.  Those columns show 1 because that is the desired result, that should say count of BUs.  For the message about 0s, I was just stating that I do not need the output to show the rows that have 0 count.

CloudvPrem.png

 

What I was trying to show with the second table is that once you use the slicer, the customer that was previously shown as Hybrid would now be shown as cloud because that is now the only type in the list and the other customer is filtered out 

 

 

Anonymous
Not applicable

Any other ideas with this?


Thanks in advance 

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.

Top Solution Authors
Top Kudoed Authors