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
jcastr02
Post Prodigy
Post Prodigy

Total Points Sum from different Tables

I have several tables with Module Assessment results, Mod 1, mod 2, etc.   In each table I have a respective total point columns, I'd like to have a table that summarizes everything, how can I get the different columns to give me a total per each Module, see screen shot....(below example of Mod 1 table)total points.png

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @jcastr02 ,

 

Please try Unpivot Columns feature in Query Editor.

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

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

View solution in original post

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hi @jcastr02 ,

 

Please try Unpivot Columns feature in Query Editor.

1.PNG

2.PNG

3.PNG

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

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

Hi @jcastr02 ,

 

Have your problem be solved? Please consider accept the answer as a solution if it worked.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

Solution 1:

Try

union(
summarize("Module No",1,"Module Name","Module 1", sum(Module1[Total Points]),
summarize("Module No",2,"Module Name","Module 2", sum(Module2[Total Points])
)

 

Solution 2:

In each table add two columns Modu;le No and Module Name with hardcoded values. and then append then into one table

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

 

I seem to be getting an error with the new column   @amitchandak 

 

error.png

Summarize and union is going to give a new table.

@amitchandak I already have a table created called "SATR New", is there a way I can just push it to there?

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.