Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Can anyone help me with the following please?
This code produces the error below:
Duration from Assigned (wd) = if('Cases'[tpo_layerassigneddate]>0,CALCULATE(
COUNTROWS('Date2'),
DATESBETWEEN('Date2'[Date],'Cases'[tpo_layerassigneddate],'Cases'[Closed & Now] +1),'Date'[Is Working Day] = TRUE(),
ALL('Date2')
))
Is Working Day code =
Is Working Day = IF('Date2'[DayofWkNumber]>5,0,IF([Public Holiday]>1,0,1))
I converted the Format of Is Working Day to True/False but I'm still getting this error.
Any ideas why?
Thanks
when you created the is working day calculated field it populated the view in the data tab okay?
yes it did. I've created a new calendar date table now and it seems to have fixed the issue.
Thanks!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |