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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
LewisFoulger
Regular Visitor

Sum of column where other column = "Other"

Hello,

 

I am new to DAX and am looking to create a measure that shows the sum of the weight which is not being recycled.

 

I believe this is how its done below but nothing is returning, calculate the sum but filter out "Other" (which is what is not being recycled).

 

Here is what I thought:

Non-Recyclable Waste = CALCULATE(SUM('Sims Waste Certificates'[Waste Weight (Ton)]),FILTER('Sims Waste Certificates',[Waste Type] = "Other"))

 

All help is appreciated! Thanks!

1 ACCEPTED SOLUTION

@LewisFoulger Based on datasnapshot you shared. Can you convert your measure to decimal number like below. Since your data for other is in few pointers only.

Samarth_18_0-1646818304085.png

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
LewisFoulger
Regular Visitor

LewisFoulger_0-1646817967433.png

I am looking to pull the total waste weight ton (ton) where waste type = Other

 

Samarth_18
Community Champion
Community Champion

Hi @LewisFoulger ,

 

The thing which you put in filter condition is case sensitive so please make sure you have write "Other" correctly(with proper case) and you can try below code:-

Non-Recyclable Waste = CALCULATE(SUM('Sims Waste Certificates'[Waste Weight (Ton)]),'Sims Waste Certificates'[Waste Type] = "Other")

or 

Non-Recyclable Waste = CALCULATE(SUM('Sims Waste Certificates'[Waste Weight (Ton)]),FILTER(all('Sims Waste Certificates'[Waste Type]),Sims Waste Certificates[Waste Type] = "Other"))

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Hi Samarth_18,

 

I tried both and it returns "1". What I am looking for is to return the total weight of every item labelled "Other", maybe I am doing something completely different?

@LewisFoulger Based on datasnapshot you shared. Can you convert your measure to decimal number like below. Since your data for other is in few pointers only.

Samarth_18_0-1646818304085.png

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.