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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |