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.
I have Table 1 (which lists Group sizes and which ID that group belongs to).
ID | GroupSize |
1 | 10 |
1 | 5 |
1 | 20 |
2 | 25 |
2 | 3 |
I'd like to sum groupsize by ID and insert the result to Table 2 (the ID table) like so:
ID | TotalGroupSize |
1 | 35 |
2 | 28 |
I have a 1 - * relationship from Table 2 -> Table 1.
Solved! Go to Solution.
Hi @nft25 ,
Try this for a new table:
Hi @nft25 ,
Try this for a new table:
Hi @nft25
If the relationship is through ID, you can create a calculated column in Table2 as:
TotalGroupSize = SUM(Table1[GroupSize])
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
Hi @nft25
You need a calculate to trigger context transition:
TotalGroupSize = CALCULATE(SUM(Table1[GroupSize]))
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
User | Count |
---|---|
24 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
29 | |
13 | |
11 | |
9 | |
9 |