Forum Discussion
Max Calculation
- 5 years ago
- 5 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 , Try, This measure will give last status based on context
lastnonblankvalue(Table[DAte], max(Table[STATUS_OF_STATION]))
Measusre to count last status as open
countx(filter(summarize(Table,Table[survey_round_id], "_1",lastnonblankvalue(Table[DAte], max(Table[STATUS_OF_STATION]))),[_1]= "open"),[survey_round_id])
not working
- Greg_Deckler5 years agoCommunity Champion
SkorpionAAM Which one? Both suggestions? What is the expected output from the sample data?
- SkorpionAAM5 years agoHelper 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)- amitchandak5 years agoSuper User
SkorpionAAM . Can you share expected output? If the initial one output then share source.