Forum Discussion

guibenassi's avatar
guibenassi
Advocate II
6 years ago
Solved

Conditional calculated with date

I have made this measure to get the value of [Custo_tabela-Un] in case that there is no number in a respective date, in this case I look for the previous date to populate the columm, and if there is ...
  • v-juanli-msft's avatar
    6 years ago

    Hi guibenassi 

    Create a measure

    Measure = CALCULATE(FIRSTNONBLANK('Table'[value],0),FILTER(ALLSELECTED('calendar'),'calendar'[Date]<MAX('calendar'[Date])))

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.