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

Slicer by Columns

Let's say that I make a metric that sums up the values in columns A, B, C, D, and E. Is is possible to make a slicer that has A, B, C, D, and E as the choice, and when I unselect them, I only see the sum of those selected. So for example, if I only checked B, D, and E, I would only see the sum of B, D, and E and not A or C?

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

@mumair,

 

Currently, there is no such a functionally to achieve your requirement, slicer cannot based on columns name. To work around this issue, you can Unpivot your table. Please refer to the steps below.

  1. Sample data.
    Capture.PNG
  2. Unpivot table(select Column A, B, C, D and E>Unpivot Columns)
    Capture.PNG
  3. Result
    Capture2.PNG

Now you can filter your data in slicer by attribute column.
Capture3.PNG

 

Regards,

Charlie Liao

View solution in original post

3 REPLIES 3
v-caliao-msft
Microsoft Employee
Microsoft Employee

@mumair,

 

Currently, there is no such a functionally to achieve your requirement, slicer cannot based on columns name. To work around this issue, you can Unpivot your table. Please refer to the steps below.

  1. Sample data.
    Capture.PNG
  2. Unpivot table(select Column A, B, C, D and E>Unpivot Columns)
    Capture.PNG
  3. Result
    Capture2.PNG

Now you can filter your data in slicer by attribute column.
Capture3.PNG

 

Regards,

Charlie Liao

CahabaData
Memorable Member
Memorable Member

The wording of your post is not clear at the moment.

 

The sum of a column is 1 value; and so you have 5 values (for 5 columns).

 

Are you trying to manipulate the math of the overall total (sum) of those 5 values by selecting which of the 5 get summed together into an overall total - or - are you attempting to control the visibility of the entire column in a visual by selecting the column's total?

www.CahabaData.com
mumair
Helper I
Helper I

Bump.......

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.