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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Expanding table (Group by) without influence the other tables

 
 

Hello, I have 5 Columns (ClasssNumber, Classtart, PersonInClass,Name and Person Number) and there are more Names and PersonNumbers then ClassNumbers and Classtarts(there can be multipl lessons I already merged them), but the problem is that Name and PersonNumber are in an other Table. So when I want to expand the Table, because i need the name, the ClassNumber (Sum from all ClassNumbers ) is wrong, because there are more Names then ClassNumbers.

Can someone help me, if you need more info pls tell me

(KursNr. = ClassNumbers, Kursstart = Classstarts, PersonenInKurs = PersonInClaass)

Mauricee_0-1724915432026.png

 

 

In the Tabel:

Mauricee_1-1724915431890.png

 

 

 

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

Hi, @Anonymous 

Based on your information, I create sample tables:

vyohuamsft_3-1724982769851.png

vyohuamsft_1-1724982514493.png

Marge two tables:

vyohuamsft_5-1724982956594.png

vyohuamsft_6-1724983028562.png

 

Although there are more names than PersonNumbers, there are actually only three types of PersonNumbers. If you want to calculate the sum of PersonNumbers, you can create a measure in Power BI Desktop to do so

vyohuamsft_7-1724983602985.png

 

If you want to know more about merging tables, you can refer to the following link:

8 Ways to Combine Tables in Power BI - Power Tech Tips

 

How to Combine Tables in Power BI - Zebra BI

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

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

View solution in original post

2 REPLIES 2
v-yohua-msft
Community Support
Community Support

Hi, @Anonymous 

Based on your information, I create sample tables:

vyohuamsft_3-1724982769851.png

vyohuamsft_1-1724982514493.png

Marge two tables:

vyohuamsft_5-1724982956594.png

vyohuamsft_6-1724983028562.png

 

Although there are more names than PersonNumbers, there are actually only three types of PersonNumbers. If you want to calculate the sum of PersonNumbers, you can create a measure in Power BI Desktop to do so

vyohuamsft_7-1724983602985.png

 

If you want to know more about merging tables, you can refer to the following link:

8 Ways to Combine Tables in Power BI - Power Tech Tips

 

How to Combine Tables in Power BI - Zebra BI

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

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

Anonymous
Not applicable

Thank you very much

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.