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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
knche1234
Regular Visitor

Problem with count, different tables

Hi! 

 

I need help with the following count scenario: 

 

Table 1 - Customers information ( Unique Customer ID)

 

Customers.JPG 

 

Table 2 - Discounts done in many Months ( Many registers )

 

Discounts.JPG

I need to count how many discounts I have in table 2 , adding this count in table 1 (New Column) 

 

This way I may know how many discounts have been applied to each customer!

 

I really apprecciate you help. 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@knche1234

 

hi, use this in a new calculated column

 

CountDiscount = COUNTROWS(RELATEDTABLE(Table2))




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@knche1234

 

hi, use this in a new calculated column

 

CountDiscount = COUNTROWS(RELATEDTABLE(Table2))




Lima - Peru

Thank you! I'm new with power BI 😃

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.