Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
Try:
Working Days Old =
VAR StartDate =
CALCULATE (
MIN ( 'FACT - ISG'[Date of Receipt] ),
'FACT - ISG'[Counted] <> "Not Counted"
)
VAR EndDate =
MAX ( 'FACT - ISG'[Date] )
VAR Result =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN ( 'DIM - Date Table'[Date], StartDate, EndDate ),
'DIM - Date Table'[IsWorkingDay] = 1,
'DIM - Date Table'[IsHoliday] = 0
)
RETURN
Result
I've removed all ('DIM - Date Table')). If you mark the table as a date table that is taken care of for you.
Formatting wise download DAX Studio and it'll do it for you or use DAX Formatter by SQLBI
Try:
Working Days Old =
VAR StartDate =
CALCULATE (
MIN ( 'FACT - ISG'[Date of Receipt] ),
'FACT - ISG'[Counted] <> "Not Counted"
)
VAR EndDate =
MAX ( 'FACT - ISG'[Date] )
VAR Result =
CALCULATE (
COUNTROWS ( 'DIM - Date Table' ),
DATESBETWEEN ( 'DIM - Date Table'[Date], StartDate, EndDate ),
'DIM - Date Table'[IsWorkingDay] = 1,
'DIM - Date Table'[IsHoliday] = 0
)
RETURN
Result
I've removed all ('DIM - Date Table')). If you mark the table as a date table that is taken care of for you.
Formatting wise download DAX Studio and it'll do it for you or use DAX Formatter by SQLBI
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.