Forum Discussion
Measure of a Measure
- 7 years ago
Basically ALLEXCEPT doesnt do what i thought it did. I took out the ALLEXCEPT (both of them) statement and it worked perfectly.
Hi brianmsbc
You could use "IF" and hasonevalue function to have different rules for child and parent fields.
If you could solve it by yourself,
Please show me how you create the measure,
which is the child and which is the parent column from the screenshot,
For this, "I need the Parent to give me the weighted (0, 1, or 3 based on subcategory) average Star Rating ",
How do i define which weighted(0,1,3) to use?
Best Regards
Maggie
The HASONEVALUE suggestion looks as if it would solve half of the problem... because the final solution definitely needs two seperate equations, one for the parent and one for the child. Using the function you provided seems as if it would seperate the two equations correctly. I am still having trouble figuring out the equation for the Parent however.
- brianmsbc7 years agoFrequent Visitor
Replying to myself here... but the reason that the Parent formula is tough for me is that it HAS to consider each Child measure as its own group. The formula HAS to be the average of childs (Weight * StarRating). The issue is that i dont know how to create a measure of a measure and i dont know how to tell it to group it by Child.