Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |