Forum Discussion
Anonymous
5 years agoNot applicable
Max Total
Hi All, I want to have grand total of Max values Here is how data set looks like sometimes i have 2 dates, sometimes 3 dates, but target needs to be same, hence Iam struggling...
- Anonymous5 years ago
dont know if this is bloated, i kinda got it working with this
i forgot about summarise earlier
Measure =Var MaxTarget = maxx('Staff Daily Utilisation','Staff Daily Utilisation'[Target Max As per current working Days])Var MaxTargetTotal = SUMMARIZE('Staff Daily Utilisation','Staff Daily Utilisation'[Staff Name],"Max Total",MaxTarget)Returnif(HASONEVALUE('Staff Daily Utilisation'[Staff Name]),MaxTarget,SUMX(MaxTargetTotal,[Max Total]))
msksenthil
5 years agoHelper III
@luisClive Thanks,
I believe you have many fields with different values on each record, in this case, we have calculated by not considering the other fields except the required fields like 'date' & 'Target Hours'
SUMX (
SUMMARIZE ( Maxhours, Maxhours[Date], "Hours", MAX ( Maxhours[Target hours] ) ),
[Hours]
)
Hope this helps,
MS
Anonymous
5 years agoNot applicable
msksenthil tnks let me try Summarize function, let me check it out
FrankAT thanks, i havent used inscope before, i check this too