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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filter on the columns

Hi,

 

I have values in 10 columns 

IDValue1Value2Value3Value4Value5Value6Value7Value8Value9Value10Sum
110102000010010100160
22010101000010101080

 

I need to add slicer in which I will multi-select the columns (value1,2,3,.....) and want the sum to be calculated based on the filtered columns. How can I get it done. 

 

Thanks 

5 REPLIES 5
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description and your data model, if you don't use unpivot in power query, It's hard to come up with other solutions to your problem.

 

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

amitchandak
Super User
Super User

@Anonymous , Better you unpivot the table and use the new value column as a filter

 https://radacad.com/pivot-and-unpivot-with-power-bi

refer: https://www.youtube.com/watch?v=2HjkBtxSM0g

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Sorry, but I can't use Power Query to unpivot, is there any way to do it through formulaes/calculated columns or tables.

@Anonymous , for that you have to create an independent table with Value1 value 10 as rows. And then you can get sum. But you will not be able to remove columns,

 

But if you are in direct query mode, explore if this option can help

https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

How to link those with the filter? and get sum

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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