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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
elijahabule
Frequent Visitor

Sum of rows values based on search by COLUMN NAME

Hello i am new to Power Bi, I need to create a meaure that can sum up the values in all rows based on doing a search for text in a specific COLUMN NAME, note this is not the same searching in the column value.  Using table below I want to do a row by row sum of all columns that contain the text   AAns.    So as for result this would be only taking values from only columns  AAns1,  AAns2,  AAns3,  AAns4, AAns5 and  AAns6   and the sum for first row would be  1+4+5+3+5+5+5 = 23

 

Thanks

 

RefSectionsAAns1AAns2AAns3AAns4AAns5AAns6
11.Need145355
11.Need325125
21.Need435315
21.Need      
21.Need445135
31.Need455255
31.Need145115
31.Need225235
41.Need454115
41.Need215235
41.Need334155
3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@elijahabule,

 

You may select Unpivot Columns in the Query Editor first.

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

Hello Sam , thanks for the suggestion but that not exactly what i want.  As i said the number of columns are not fixed so may be 3, 6 , 9 ,20, etc depending on how many reasponse i get. so i need to do the row by row sum of all column whther its just 3, 6 ,14 30 columns.

 

Thanks

 

Elijah

Is this requirement fullfilled @elijahabule?

 

I am also in need of same solution.

 

Thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.