Forum Discussion
SkorpionAAM
Helper V
6 years agoMax Calculation
New to DAX here. I am trying to calculate the latest record i create the new column which if place_digital_adress is same then Match if not then Not match _LOOK = var _val = LOOKUPVALUE('GasSt...
- 6 years ago
- 6 years ago
@SkorpionAAM So, this? PBIX attached.
Measure 6b = VAR __Table = ADDCOLUMNS( SUMMARIZE('Table (6)',[ID],"Date",MAX([Date])), "Status",MAXX(FILTER('Table (6)',[ID]=EARLIER([ID])&&[Date]=EARLIER([Date])),[STATUS_OF_STATION]) ) RETURN COUNTROWS(FILTER(__Table,[Status]="Open"))
Greg_Deckler
Community Champion
6 years ago@SkorpionAAM So, this? PBIX attached.
Measure 6b =
VAR __Table =
ADDCOLUMNS(
SUMMARIZE('Table (6)',[ID],"Date",MAX([Date])),
"Status",MAXX(FILTER('Table (6)',[ID]=EARLIER([ID])&&[Date]=EARLIER([Date])),[STATUS_OF_STATION])
)
RETURN
COUNTROWS(FILTER(__Table,[Status]="Open"))SkorpionAAM
Helper V
6 years agolet me check thn i back to u