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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
waynep-jll
New Member

Count Across multiple Columns

Hello, I am wondering what the best way to have power BI account for values across multiple columns. For example if I wanted to show a pie chart that counts locations that have apples, compared to locations that have bananas, compared to locations that have carrots, based on a chart that doesn't have them necessarily split by item.

 

If I wanted a pie chart that shows locations with Apples, Banans, and Carrots, it should read 3A/2B/3C, but I don't know how to get it to add from multiple columns but apply it to the 1 location.

 

 Item 1Item 2Item 3
Location 1ApplesBananasCarrots
Location 2ApplesCarrots 
Location 3BananasCarrots 
Location 4Apples  
1 REPLY 1
truptis
Community Champion
Community Champion

Hi @waynep-jll ,

Result Apples = calculate(item1, filter(item1="Apples") + calculate(item2, filter (item2="Apples") + calculate (item3, filter(item3="Apples")

 

similarly do for bananas and carrots 

 

please hit a thumbs up if it helps you. Thanks.

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.