The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Dear all,
my below formula is returning an error
This formula is invalid or incomplete: 'The expression is not valid or appears to be incomplete. Please review and correct the expression.
The end of the input was reached.
'.
Avg Fte=CALCULATE(SUM('Flash WTD'[Avg FTE]),FILTER('Flash WTD',MAX('Flash WTD'[Index]))
Solved! Go to Solution.
@vjnvinod You should try something like below and also you need to add one more bracket at the end to make it complete.
Avg Fte=CALCULATE(SUM('Flash WTD'[Avg FTE]),FILTER('Flash WTD','Flash WTD'[Index]=MAX('Flash WTD'[Index])))
@vjnvinod You should try something like below and also you need to add one more bracket at the end to make it complete.
Avg Fte=CALCULATE(SUM('Flash WTD'[Avg FTE]),FILTER('Flash WTD','Flash WTD'[Index]=MAX('Flash WTD'[Index])))
I think you need to change this.
MAX('Flash WTD'[Index]) = xxx
@vjnvinod , what are you trying here
one option
Avg Fte=CALCULATE(SUM('Flash WTD'[Avg FTE]),FILTER(allselected('Flash WTD') ,'Flash WTD'[Index] = MAX('Flash WTD'[Index])))
Second option
Avg Fte=
var _max = maxx(allselected('Flash WTD') ,'Flash WTD'[Index] )
return
CALCULATE(SUM('Flash WTD'[Avg FTE]),FILTER(('Flash WTD') ,'Flash WTD'[Index] = _max ))
User | Count |
---|---|
70 | |
67 | |
62 | |
48 | |
28 |
User | Count |
---|---|
113 | |
78 | |
64 | |
55 | |
44 |