Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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:
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!
Solved! Go to Solution.
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:
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.
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.
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:
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.
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.
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |