Forum Discussion
Vijaya4123
2 years agoNew Member
Context is not working - Total is incorrect
I have two fact tables Inventory and Replacements - Inventory has everything and replacements are the devices that failed. My goal is to calculate the FailureRate by DeptID and I want to classify the Dept as failure if there the dept failure % is more than 50%.
I 'm able to get the measure working with deptID in the table view but not the total number
Sample data
| Inventory | |
| DeptID | SerialNum |
| 345 | FAC1 |
| 345 | FAC2 |
| 345 | FAC3 |
| 4567 | FAC4 |
| 4567 | FAC5 |
| 4567 | FAC6 |
| 2456 | FAC7 |
| 2456 | FAC8 |
| 2456 | FAC9 |
| 2456 | FAC10 |
| 5432 | FAC11 |
| 5432 | FAC12 |
| 5432 | FAC13 |
| 65432 | FAC14 |
| 65432 | FAC15 |
| 65432 | FAC16 |
| 65432 | FAC17 |
| Failures | ||
| DeptID | SerialNum | DesignIssue |
| 345 | FAC1 | Yes |
| 4567 | FAC4 | Yes |
| 5432 | FAC13 | No |
| 2456 | FAC10 | Yes |
| 65432 | FAC14 | No |
| 5432 | FAC12 | Yes |
| 65432 | FAC15 | Yes |
| 65432 | FAC16 | Yes |
4 Replies
- ryan_mayu
Super User
- Vijaya4123New Member
Tried sumx no use
- ryan_mayu
Super User
then let's see your sample data.
for dept ID 345, how to calculate the failure %? is that 33.3%?
- Ashish_Mathur
Super User
Hi,
None of the Department failure % is even close to 50%. Why then is there a 1 appearing in the Dept fail column?