Forum Discussion
NilR
Post Patron
3 years agoPlease help with Wrong total
As you see in the first table I need to only include the Min([Engagement_Date]) , I did it but my total keep coming back wrong and istead of 88, it shows 16 in my dashboard. can you help ? VA...
NilR
Post Patron
3 years agoThanks Greg_Deckler ! I tried your solution before, but I could not get it working 😞
Greg_Deckler
Community Champion
3 years agoNilR Well, it's a pretty complex measure but maybe try this:
Measure Total =
VAR __Table =
ADDCOLUMNS(
SUMMARIZE('Table', [ID], [ENGAGED_DT]),
"__Value", [Current Measure]
)
VAR __Result = IF( HASONEVALUE('Table'[ID]), [Current Measure], SUMX(__Table, [__Value]))
RETURN
__Result- NilR3 years ago
Post Patron
I figured this is wrong:
VAR _MIN_ENG_DT= CALCULATE(MINX( SUMMARIZE(FILTER(‘Table’,([ENR_DT]>= Min_Date && [ENR_DT]<= Max_Date) && ([ENGAGED_DT]>= Min_Date && [ENGAGED_DT]<= Max_Date) &&’Table’[GP]=_gp && [ID] <> "0" ), ‘Table’[ID],"_Min", Min(‘Table’[ENG_Date])),[_Min]))