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.
Greetings PBI community.
I am very much still learning and am a bit stuck on how to accomplish this.
I have values in column A of a spreadsheet, 1-15. In columns B-K there are categories. In each category a name will appear for each of the 1-15 values. My goal is to total the 'score' for each name based on the corresponding value in column A.
For instance in this example using only 1-3 rather than 1-15, Tom would have 16, Sue would have 21 and Anne would have 23
1 | Tom | Sue | Sue | Tom | Tom | Sue | Sue | Tom | Sue | Anne |
2 | Sue | Tom | Tom | Anne | Anne | Tom | Tom | Sue | Tom | Tom |
3 | Anne | Anne | Anne | Sue | Sue | Anne | Anne | Anne | Sue | Sue |
Any help would be greatly appreciated.
Solved! Go to Solution.
Hey @johnelliott ,
when using Power Query you can select column a and use the transformation "Unpivot other columns", the following screenshot shows the result of this operation:
The idea of the unpivot operation is to transform the existing wide format into a long format (this is optimal for the Tabular data model).
Then in Power BI you can create this simple table visual
I'm not sure about the expected result, as I understand the business rule you provided like this:
Sue = 5 * 1 + 2 * 2 + 4 * 3 = 21.
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @johnelliott ,
when using Power Query you can select column a and use the transformation "Unpivot other columns", the following screenshot shows the result of this operation:
The idea of the unpivot operation is to transform the existing wide format into a long format (this is optimal for the Tabular data model).
Then in Power BI you can create this simple table visual
I'm not sure about the expected result, as I understand the business rule you provided like this:
Sue = 5 * 1 + 2 * 2 + 4 * 3 = 21.
Hopefully, this provides what you are looking for.
Regards,
Tom
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |