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.
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
Ref | Sections | AAns1 | AAns2 | AAns3 | AAns4 | AAns5 | AAns6 |
1 | 1.Need | 1 | 4 | 5 | 3 | 5 | 5 |
1 | 1.Need | 3 | 2 | 5 | 1 | 2 | 5 |
2 | 1.Need | 4 | 3 | 5 | 3 | 1 | 5 |
2 | 1.Need | ||||||
2 | 1.Need | 4 | 4 | 5 | 1 | 3 | 5 |
3 | 1.Need | 4 | 5 | 5 | 2 | 5 | 5 |
3 | 1.Need | 1 | 4 | 5 | 1 | 1 | 5 |
3 | 1.Need | 2 | 2 | 5 | 2 | 3 | 5 |
4 | 1.Need | 4 | 5 | 4 | 1 | 1 | 5 |
4 | 1.Need | 2 | 1 | 5 | 2 | 3 | 5 |
4 | 1.Need | 3 | 3 | 4 | 1 | 5 | 5 |
You may select Unpivot Columns in the Query Editor first.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
96 | |
75 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |