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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Belindah
Frequent Visitor

Calculate the sum of a column when a different column has a value of Yes

I want to calculate the sum of the numbers in the Switches column if the Complete column = yes. I have tried many different things for hours, and all I can get it to do is give me the count of the rows that have yes in the Complete column. Please help. Thanks!

 

Belindah_0-1710886048898.png

 

1 ACCEPTED SOLUTION
samratpbi
Super User
Super User

Hi, you can create below measure:

Total Y Switch =
CALCULATE(
    SUM(T1[Switches]),
    T1[Complete] = "Yes"
)
 
If this resolves your problem, then please make it as solution, Thanks!

View solution in original post

1 REPLY 1
samratpbi
Super User
Super User

Hi, you can create below measure:

Total Y Switch =
CALCULATE(
    SUM(T1[Switches]),
    T1[Complete] = "Yes"
)
 
If this resolves your problem, then please make it as solution, Thanks!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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