Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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 |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |