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
LizziePeters
Helper I
Helper I

Compare 2 tables and count number of repeating items including zero

 I have 2 tables in power BI, table A and table B.  Table A contains a list of all products to download from a website in an excel file.  Table B contains a list of downloads from that website.  I want to know how many times each product in table A has been downloaded, including no downloads.  

 

Desired output as follows:

 

ProductNumber of downloads
Knife12
Spoon4
Fork0

 

 

Thank you !!!

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@LizziePeters 

could you please share the sample data?

maybe you can drag two columns to the table and set one to count.

1.PNG

2.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @LizziePeters 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

vanessafvg
Super User
Super User

create a lookup table that contain unique list of your products

then join both of your other tables to the the product table on product.

you will then be table to sum which have downloads

for those that dont you can do an
2
downloadscount =
IF ( ISBLANK ( table[downloads] ), 0, SUM ( table[downloads] ) )

 

drag the product from your lookup table





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@LizziePeters 

could you please share the sample data?

maybe you can drag two columns to the table and set one to count.

1.PNG

2.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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