Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

EARLIER problem while framing a formula for previous row field

Hi All,   I am having a problem while framing a formula for a row field in a column. The following picture shows what I wanted from the fields. I tried EARLIER function but it does not come out to...
  • Fowmy's avatar
    Fowmy
    6 years ago

    Anonymous 


    Add this as a new column in your table:

    TB = 
    
    VAR __First = MIN(Query1[Total Scope (Pts)])
    VAR __FirstDate = MIN(Query1[ Trending Date])
    return
    IF( [ Trending Date] = __FirstDate , __First , 
        __First - 
        COUNTROWS(
            FILTER(
                Query1,
                Query1[ Trending Date] < EARLIER(Query1[ Trending Date])
            )
        )  * 12 
    )

     

    ________________________

    If my answer was helpful, please consider Accept it as the solution to help the other members find it

    Click on the Thumbs-Up icon if you like this reply 🙂

    YouTube  LinkedIn