Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Still getting error with IFERROR()

I have used this measure to calculate the ytd of the selectedYear-1 :
CALCULATE
(
        SUM(v_f_oppor_apac[line item amount nypmar]),
        OpportunityStage[OpportunityStage_Harmonized] = "Won",
        SAMEPERIODLASTYEAR(d_date_closed[day_dt]),
        v_f_oppor_apac[K_YTDDatePrevYear] = TRUE()
    )  

  //[K_YTDDatePrevYear]: this measure is flag that marks all the dates till today of previous yr as TRUE().


But I'm getting the error when I select the yr 2024 from the filter:

And even after using the functions IFERROR() and ISERROR() I'm still getting the same error.
Can anyone let me know what I'm doing wrong here.

Thankyou for your time!!

1 Reply