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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Slevi90
Frequent Visitor

Divide by specfic amount based on group size

Hello 🙂 

 

I am very new to PowerBI and facing an issue, that I can't really find online. 

I joined some tables together and you can see the result in this example: 

Slevi90_0-1719233336996.png

I want to have an additional column now, that will count the total amount of "entries" within a group.

For example the total amount of entries of Quat.Verbrauch of the groups formed by QuatId. 

So QuatId 1 has 2 entries belonging to its group (1). QuatId 2 has 1 entry, belonging to its group (2) and so forth,

so that the column will look like this: 

Result

   2

   2 

   1

   1

   1

 

Every calculation I tried will end up counting all Rows (5) or distinct rows(4), which is not what I need. 

Best wishes! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,@Slevi90 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1719280416225.png

2.Create calculated column references:

Column = CALCULATE(COUNTROWS('GTable'),FILTER(ALLSELECTED('GTable'),'GTable'[Quat.Quatld]=EARLIER('GTable'[Quat.Quatld])))

3.Here's my final result, which I hope meets your requirements.

vlinyulumsft_1-1719280514921.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

1 REPLY 1
Anonymous
Not applicable

Hi,@Slevi90 

Regarding the issue you raised, my solution is as follows:

1.First I have created the following table and the column names and data are the data you have given:

vlinyulumsft_0-1719280416225.png

2.Create calculated column references:

Column = CALCULATE(COUNTROWS('GTable'),FILTER(ALLSELECTED('GTable'),'GTable'[Quat.Quatld]=EARLIER('GTable'[Quat.Quatld])))

3.Here's my final result, which I hope meets your requirements.

vlinyulumsft_1-1719280514921.png

Can you share sample data and sample output in tabular format if I am misunderstanding? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

Please find the attached pbix relevant to the case.

 

Best Regards,

Leroy Lu

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

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.