Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

curmonthoffset behavior on q level

HI, I am using the calendar table createdby Avi Singh. I am confused about the behavior of the curmonthoffset column.  This is the code for the table:    let /* ****This Calendar was crea...
  • Anonymous's avatar
    Anonymous
    4 years ago

    I found a solution myself:

    Cumulative Won MRR = 
    
    SWITCH(
        TRUE(),
    and(SELECTEDVALUE(Dates[CuryearOffset])=0,and(SELECTEDVALUE(Dates[CurmonthOffset])=0,SELECTEDVALUE(Dates[CurQuarterOffset])=0)), 1),
    0)