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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Summing the rows of multiple columns with filter

Hi. I currently have a table that displays decimals for each particular day. What I'd like to do is summarize each of these days, filtered by the Resource#.image.png

 

The desired output would be a table that displays each sum per Day# according to its resource (as below).image.png

My initial idea was to use CALCULATE, SUM and FILTER to each column individually, but I constantly receive circular dependency errors. Is there a better way to go about doing this?

CALCULATE(SUM(Sub_Table[Day#15]),FILTERS(Sub_Table[Resource#]))

Thank you for the input!

 

 

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Create three measures using DAX below and drag them to the table visual:

Day# 15_ = CALCULATE(ROUNDUP(SUM('Table'[Day#15]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))
Day# 16_ = CALCULATE(ROUNDUP(SUM('Table'[Day#16]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))
Day# 17_ = CALCULATE(ROUNDUP(SUM('Table'[Day#17]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Create three measures using DAX below and drag them to the table visual:

Day# 15_ = CALCULATE(ROUNDUP(SUM('Table'[Day#15]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))
Day# 16_ = CALCULATE(ROUNDUP(SUM('Table'[Day#16]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))
Day# 17_ = CALCULATE(ROUNDUP(SUM('Table'[Day#17]), 0), ALLEXCEPT('Table', 'Table'[Resource#]))

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Omega
Impactful Individual
Impactful Individual

Change data type of Reasource# to Text and then drag your measures 🙂  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.