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
Tomek1982
Helper I
Helper I

How to sumarize values from selected columns

I have a following slicer and a table:

 

Tomek1982_0-1668887969786.png

 

How to calculate "temp total" based on a slicer selection?

Expected result would should follow standard slicer functionality, eg.:

- when "a" selected then "temp total" = "value a"

- when "a" and "b" selected then "total temp" = "value a" + "value b"

- when nothing selected then "total temp" = "value a" + "value b" + "value c" + "value d" + "value e" + "value f"

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Tomek1982 ;

You could unpivot the columns in power query.

1.tranfroms -> unpivot columns 

vyalanwumsft_0-1668995891298.png

vyalanwumsft_1-1668995948684.png

2. add matrix visual.

vyalanwumsft_2-1668996354119.png

vyalanwumsft_3-1668996365094.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

I already did pivot. The story behind is that I had some missing data. I did pivot to fill the gaps. I do not think I can unpivot this table, or can I?

 

Tomek1982_0-1669156748889.png

 

Example PBIX 

 

I would like to chooose variables in the lower graph by slicer

Jayee
Responsive Resident
Responsive Resident

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Hi,

I already did pivot. The story behind is that I had some missing data. I did pivot to fill the gaps. I do not think I can unpivot this table, or can I?

 

Tomek1982_1-1669157064895.png

 

 

Example PBIX 

 

I would like to chooose variables in the lower graph by slicer

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.

Top Solution Authors