Forum Discussion
Matrix - Non Summed Value?
- 2 years ago
This has been resolved.
After looking up how the merge functions, and knowing that I used a LEFT OUTER join, I found out that I needed to enable load on my ACTIVITIES table, create a relationship with the MERGED table based on ACTIVITY_ID, which is what I used for the join, and I was able to use the ENROLLMAX from ACTIVITIES directly to correctly SUM, rather than multiply.
MorganKlaif Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Hi Greg_Deckler Greg,
Thank you for getting back to me, and sorry for the delayed response.
I've uploaded a sample report with sample data to: https://drive.google.com/file/d/1sZ5oLzPOqh-Jk9jxn6vUJvsjvewob3Yj/view?usp=sharing
What I'm expecting to see would be:
| Year | 2024 | |
| Branch | January | February |
East Orange YMCA | ||
Enrolled | 6 | 15 |
| % Capacity | 19% | 47% |
| Capacity | 32 | 32 |
What I currently have is:
| Year | 2024 | |
| Branch | January | February |
East Orange YMCA | ||
Enrolled | 6 | 15 |
| % Capacity | 7% | 6% |
| Capacity | 88 | 268 |
Capacity should only be the sum of the two activites' "ENROLLMAX", but it appears to be multiplying by the number of people enrolled.
Then % Capacity should be Enrolled divided by Capacity.