Forum Discussion

RSOSA's avatar
RSOSA
New Member
2 years ago
Solved

Difference of value between dates

Hello Everyone,    I am a new user of PBI, and now I am struggling with a formula, hope someone can guide me on how to do it,   Basically what I want to do is calculate de difference or growth be...
  • kiran_jadhav's avatar
    2 years ago

    Hello Rsosa,

    If you are having only days insted of full date in WKN column you can try below measure, only replace "TABLENAME" with Your table name

    %diff=
    var todaysdate = MAX(TABLENAME[WKN])
    var previousdaydate= todaysdate -1
    var todayscount =CALCULATE(SUM(TABLENAME[Repeatecaller]),TABLENAME[WKN]=todaysdate )
    var previousdaycount=CALCULATE(SUM(TABLENAME[Repeatecaller]),TABLENAME[WKN]=previousdaydate)

    return
    IF(previousdaycount=BLANK(),BLANK(),todayscount -previousdaycount)

    Use a table or matrix visual





  • kiran_jadhav's avatar
    2 years ago

    If you have full date you can replace it with WKN column.

     

    If previous solution works for you please mark as solution.