Hi @Tad17,
what is your desired outcome when 'P FILES'[ATD] and 'P FILES'[BIZ DAYS] are both blank? Because as it is written now, dateidx does not get a value when they are both blank.
You could try something like this
BIZ DATE = VAR dateidx = IF ( AND ( ISBLANK ( [ATD] ), ISBLANK ( [BIZ DAYS] ) ), BLANK (), CALCULATE ( MAX ( 'Calendar'[WorkingDayIndex] ), 'P FILES'[ATD] = RELATED ( 'Calendar'[Date] ) ) ) VAR newdateidx = dateidx + 'P FILES'[BIZ DAYS] RETURN CALCULATE ( MAX ( 'Calendar'[Date] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[WorkingDayIndex] = newdateidx && 'Calendar'[IsWorkDay] = 1 ) )
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
97 | |
76 | |
42 | |
30 | |
30 |
User | Count |
---|---|
136 | |
95 | |
83 | |
48 | |
39 |