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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
hrasmussen
New Member

Dynamically sum column values by row based on slicer

Hi all,

 

I have conditions for a list of elements that I need to add together to get one final output. Currently I have a column in power bi that is adding all the values together, but I'd like to be able include/exclude values (i.e. columns) based on a slicer. See below for a simplified version (from excel). Due to other values in the table and a custom visual I'm using, transposing/unpivoting the data is not an option.

 

Any ideas on how to do this? Happy to provide more info/pbix if needed.

 

example.png

3 REPLIES 3
lbendlin
Super User
Super User

That sounds like standard Matrix visual functionality.  What have you tried and where are you stuck?

Matrix visual is working as expected, however does not display the information quite like I'm desiring.

 

I'm working with a custom 3D visual (I'm in the architecture field), so I'm thinking it may be a limitation with that. I'm not sure on etiquette for sharing pbix files with custom visualizations...I've reached out to the author to ask.

 

In the meantime, I'm hoping to mimic the function of the subtotal column in the matrix visualization to feed to this custom visualization I'm using. I needs A NUMBER to properly display information (measures apparently don't work). I've tried creating a custom column in my table to sum all required values. This method works, but it is static. I'd like to be able to look at any combination of conditions. 

 

For context we are creating a 3D "heat map" of high priority spaces to renovate/remodel. See attached screenshot. The "Values" field in the visual currently will display the first value in the list of metrics, but I'd like to get the subtotal column number from the matrix visual. Any ideas?

 

link to a video of the custom visual I'm using: https://www.youtube.com/watch?v=jyud72ZklZY&ab_channel=ProvingGround

 

Screenshot 2022-03-21 135618.png

" (measures apparently don't work). ... I'd like to be able to look at any combination of conditions. "

 

Those two things are incompatible.  I would ask the visual designer to confirm if the limitation holds true.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.