Forum Discussion
Calculate() - Issue filtering related table
Hello -
I have two tables: tblProject and tblAllocation
tblAllocation stores all information relevant to a monthly allocation in relation a project. Each record references a unique ProjectID from tblProject.
Each project record in tblProject has a 'Strategy' flag.
I want to measure what % of our utilization is going against projects that are part of the strategy.
This is the formula I thought to use, but it's not properly filtering out non strategic projects:
| tblProject | |
| ProjectID | Strategy |
| 1 | TRUE |
| 2 | FALSE |
| 3 | FALSE |
| tblAllocation | |
| ProjectID | Utilization |
| 1 | 10 |
| 1 | 15 |
| 1 | 30 |
| 2 | 10 |
| 2 | 10 |
| 3 | 20 |
| 3 | 30 |
| 3 | 10 |
| 3 | 5 |
In this scenario, I would want the measure to be 55/140 = 39%. Since only ProjectID 1 has a strategy=true.
Hi silkwire ,
I have a little confused about your requirement.
By my test with your sample data and your measure, it seems that the result of measure is 39% as your desired.
Do I missing anything?
Best Regards,
Cherry
2 Replies
- v-piga-msft
Resident Rockstar
Hi silkwire ,
I have a little confused about your requirement.
By my test with your sample data and your measure, it seems that the result of measure is 39% as your desired.
Do I missing anything?
Best Regards,
Cherry
- silkwireFrequent Visitor
Thanks for the reply. I did the same thing as you and it worked... then I realized that there was a page filter set in the report I was working in that filtered out all false values. So, problem solved. Thanks.