Forum Discussion

fjjohann's avatar
fjjohann
Frequent Visitor
9 years ago
Solved

Caluculation Quote Between Dates and Consider Product

Hello,   My Table contain 3 columns [Date] [Ativo] [Value]   There are no [Value] per [Ativo] for all [Date]   I need one Mesure:   Show the [Value] according to the [Date] selected in the D...
  • TomMartens's avatar
    TomMartens
    9 years ago

    Perfect,

     

    guess this measure will provide what you are looking for

    lastvalue = 
    CALCULATE(
    	LASTNONBLANK(Cotacao[Cot], sum(Cotacao[Cot])
    	) 
    )

    a slight variation will provide the last date

    lastdate = 
    CALCULATE(
    	LASTNONBLANK('Cotacao'[Data], sum(Cotacao[Cot])
    	) 
    )

    Hope this helps