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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Custom Column - Sum Quantity based on texts in another column

I have data coming in from assemble. This data has sqft of walls. I then have status of walls i.e. frame, hung and finsihed. I am trying to create a custom column that sums the sqft if the status equals a text value. The wall can have a status of hung but if it is hung it has to be framed so the custom column formula I am looking for would sum the quantity if the status = framed or hung or finished. I have made this work as a meassurment but I want it to work as a column so I have more flexability in visualizations.

 
SUMX(FILTER('Grid Data','Grid Data'[Drywall Status]="Framed"),'Grid Data'[Takeoff Quantity])
1 ACCEPTED SOLUTION
Anonymous
Not applicable

so I have now made it this far:

if([Drywall Status]="Framed")or([Drywall Status]="1 Side hung")or([Drywall Status]="1 side hung – 1 side top out finished")or([Drywall Status]="1 side hung & finished")or([Drywall Status]="1 side top out")or([Drywall Status]="1-Side top out & Finished")or([Drywall Status]="2 sides hung")or([Drywall Status]="2 sides hung & finished")or([Drywall Status]="2 sides hung, 1 side finished")then([Takeoff Quantity])else 0

 

Next I need it to sum

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

so I have now made it this far:

if([Drywall Status]="Framed")or([Drywall Status]="1 Side hung")or([Drywall Status]="1 side hung – 1 side top out finished")or([Drywall Status]="1 side hung & finished")or([Drywall Status]="1 side top out")or([Drywall Status]="1-Side top out & Finished")or([Drywall Status]="2 sides hung")or([Drywall Status]="2 sides hung & finished")or([Drywall Status]="2 sides hung, 1 side finished")then([Takeoff Quantity])else 0

 

Next I need it to sum

Anonymous
Not applicable

so I just needed to change the data type from any to number. 

 

All is working as I hoped. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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