The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
12 | |
8 | |
8 |