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"))
SkorpionAAM
Helper V
6 years agonot working
Greg_Deckler
Community Champion
6 years agoSkorpionAAM Which one? Both suggestions? What is the expected output from the sample data?
- SkorpionAAM6 years ago
Helper V
i need to count as well with this Method
مفتوح1 = var openx = CALCULATE(COUNT('GasStation Survey'[_LOOK]),FILTER('GasStation Survey','GasStation Survey'[_LOOK] = "Not Match"),FILTER('GasStation Survey','GasStation Survey'[survey_round_id] = "Round 2"),FILTER('GasStation Survey','GasStation Survey'[STATUS_OF_STATION] = "Open")
) return
IF(ISBLANK(openx),0,openx)- amitchandak6 years ago
Super User
SkorpionAAM . Can you share expected output? If the initial one output then share source.