Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Card last date

Hello friends,    I need to do a card (measure), which updates every day with the current date independent to have a date filter on report.   in short, I need to make a measure with the last date...
  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    Anonymous Hence why I did not recommend having MAX in your CALCULATE and instead use a separate measure. You can also do this:

    Total Defeito = 
    VAR __Max = MAX(Log_Bateria[Data])
    RETURN
    calculate(
    DISTINCTCOUNT(Log_Bateria[Equipamentos]),Log_Bateria[Status1] = "Com Defeito",
    Log_Bateria[Data] = __Max) + 0