Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
22 | |
20 | |
15 | |
13 |
User | Count |
---|---|
49 | |
41 | |
39 | |
19 | |
19 |