Forum Discussion
Anonymous
4 years agoNot applicable
Count IF
Hello friends, how are you? I need to count the balls different of green, someone help me to create this measure? this measure is the average of a values in a period of time. thanks...
- 4 years ago
Hi, Anonymous
You can try the following methods.
Table:
Average = SUMMARIZE ( 'Table', 'Table'[Item], "Average", CALCULATE ( AVERAGE ( 'Table'[%] ), FILTER ( ALL ( 'Table' ), [Item] = EARLIER ( 'Table'[Item] ) ) ) )Column:
Ball collour = IF ( [Average] < 0.9, "Yellow ball", IF ( [Average] > 1.1, "Red ball", "Green ball" ) )Measure:
Count = CALCULATE ( COUNT ( 'Average'[Item] ), FILTER ( ALL ( 'Average' ), [Ball collour] <> "Green ball" ) )Is this the output you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 4 years ago
Hello Again:
Since there is one yellow ball I made % both including Yellow and not including yellow. Please see file link.https://drive.google.com/file/d/1fw1_03W0Pn_eOG8CdKhOvSiwVrcXrGru/view?usp=sharing
Whitewater100
4 years agoSolution Sage
Hello:
Glad it worked. Are you able to mark my reply with solution or kudos? I appreciate that. Thanks again..
Anonymous
4 years agoNot applicable