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
johnelliott
Frequent Visitor

Tallying totals for items in columns based on a value in column A (scorecard)

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

 

1Tom SueSueTom Tom SueSueTom SueAnne
2SueTom Tom AnneAnneTom Tom SueTom Tom 
3AnneAnneAnneSueSueAnneAnneAnneSueSue

 

Any help would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

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:
image.png

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

TomMartens_0-1660245141746.png

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

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:
image.png

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

TomMartens_0-1660245141746.png

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.

Top Solution Authors