Forum Discussion
Anonymous
5 years agoNot applicable
Help on Formula
Hello, I am using this below formula but it is showing error. Scorecard 2 = CALCULATE([Scorecard],IF(NOT('Sheet1'[Capability & offer] = BLANK() && NOT(Sheet1[Overall Performance] = BLANK() &&...
- 5 years ago
Hi Anonymous ,
Would you please try to use the following measure:
Scorecard 2 = VAR A = CALCULATE ( AVERAGE ( 'Sheet1'[Capability & offer] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Capability & offer] ) ) ) ) VAR B = CALCULATE ( AVERAGE ( 'Sheet1'[Overall Performance] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Overall Performance] ) ) ) ) VAR C = CALCULATE ( AVERAGE ( 'Sheet1'[Delivering with integrity] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Delivering with integrity] ) ) ) ) VAR D = CALCULATE ( AVERAGE ( 'Sheet1'[Communicating effectively] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Communicating effectively] ) ) ) ) VAR E = CALCULATE ( AVERAGE ( 'Sheet1'[Demonstrating right behaviours] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Demonstrating right behaviours] ) ) ) ) VAR F = CALCULATE ( AVERAGE ( 'Sheet1'[Knowing expectations] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Knowing expectations] ) ) ) ) VAR G = CALCULATE ( AVERAGE ( 'Sheet1'[Health, safety & wellbeing] ), FILTER ( 'Sheet1', NOT ( ISBLANK ( 'Sheet1'[Health, safety & wellbeing] ) ) ) ) RETURN ( A + B + C + D + E + F + G ) / 7If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Greg_Deckler
5 years agoCommunity Champion
Anonymous What is your error? Can you post sample data? Use daxformatter.com. You need to use a FILTER clause and not IF, FILTER(NOT(ISBLANK([capability & offer])) && NOT(ISBLANK(...
Scorecard 2 =
CALCULATE (
[Scorecard],
IF (
NOT (
'Sheet1'[Capability & offer] = BLANK ()
&& NOT (
Sheet1[Overall Performance] = BLANK ()
&& NOT (
Sheet1[Delivering with integrity] = BLANK ()
&& NOT (
Sheet1[Communicating effectively] = BLANK ()
&& NOT (
Sheet1[Demonstrating right behaviours] = BLANK ()
&& NOT (
Sheet1[Knowing expectations] = BLANK ()
&& NOT (
Sheet1[Health, safety & wellbeing] = BLANK ()
&& NOT ( Sheet1[Resolving issues] = BLANK () )
)
)
)
)
)
)
),
0
)
)
scorecard =
(
AVERAGE ( Sheet1[Capability & offer] )
+ AVERAGE ( Sheet1[Communicating effectively] )
+ AVERAGE ( Sheet1[Delivering with integrity] )
+ AVERAGE ( Sheet1[Demonstrating right behaviours] )
+ AVERAGE ( Sheet1[Health, safety & wellbeing] )
+ AVERAGE ( Sheet1[Knowing expectations] )
+ AVERAGE ( Sheet1[Overall Performance] )
) / 7