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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhelp2021
Frequent Visitor

Power BI Count criteria by Unique ID

Hello,

 

I need help finding an expression for a table.

 

I have two tables, one of the unique customer IDs, one of product information including products assigned to a customer id and its manufacturer.

 

I need to find a way to count how many times a specific manufacturer appears in the product list by customer id.

 

The current formula i have that incorrectly results in a count of how many times the manu. appears:

 

Sum of Manu Prod= Countrows(FILTER('Prod list',[Manufacturer]="MANU01"))

 

I understand this is incorrect but I cannot find an additonal expression to count those appearances by the unique code/customer ID code.

 

Thank you,

bhelp

1 ACCEPTED SOLUTION
bhelp2021
Frequent Visitor

embarrasingly easy solution- Sum of Manu Prod = Calculate(Count('Prod List'[MANU],'Prod list'[MANU]="MANU01")

View solution in original post

1 REPLY 1
bhelp2021
Frequent Visitor

embarrasingly easy solution- Sum of Manu Prod = Calculate(Count('Prod List'[MANU],'Prod list'[MANU]="MANU01")

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors