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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
erin_g
Regular Visitor

Count # of times customer shows in a table

Hi,

I am new to Power BI and trying to create a measure that will count the number of times that a customer is listed in a table.  The count also needs to update when different filters are selected.

 

So in the example below:

 

Customer A

Customer B

Customer B

Customer C

Customer C

Customer C

Customer C

 

The measure would show 1 for Customer A, 2 for Customer B, and 4 for Customer C.

Any help on how to accomplish this is very much appreciated.

Thanks - Erin

 

 

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @erin_g 

I prefer this one

Measure = CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Customer]))

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

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

Hi @erin_g 

I prefer this one

Measure = CALCULATE(COUNTROWS(Table), ALLEXCEPT(Table, Table[Customer]))

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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