Forum Discussion
JCK2
Helper III
3 years agoGet latest value based on max date
Hello!!! I want to get the latest target based on the latest date and for the date format has time also, so basically the latest value based on max date and time. The expeted output of this i...
FreemanZ
Super User
3 years agohi JCK2
try to plot a visual table with a measure of this:
Target2 =
VAR _value = MAXX(TableName, TableName[ModifiedDate])
RETURN
MAXX(
FILTER(TableName, TableName[ModifiedDate] =_value),
TableName[Target]
)
i tried and it worked like this:
the dataset:
- FreemanZ3 years ago
Super User
it can be further simplified like this:
Target3 =VAR _value = MAX(TableName[ModifiedDate])RETURNMAXX(FILTER(TableName, TableName[ModifiedDate] =_value),TableName[Target]) - Anonymous1 year agoNot applicable
With this I got What I wanted but one thing when I enable the total values the total the value is coming as Max value of both(in this case 95) instead of sum of both ( 96) .
Can you please help me with that.